knitr::opts_chunk$set(echo = TRUE)
subdirectory: any folder, but cloud synced one.
Build tab -> Configure Build Tools... :
check generate documentation with Roxygen.
Put your R script underneath /R folder.
Inside existing .R file; or
Create a new .R file.
each .R file represents a collection of functions that are to service a specific category of service or task.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.