server <- function(input, output, session){
# Loop through all .R files in the subfolder "/R" and load them
for (r_file in list.files(path = "R", pattern = "\\.R$")) {
source(paste0("R/", r_file), local = TRUE)$value
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.