# ------------------------------------------------------------------------
#
# Title : Config script
# By :
# Date : jeudi 13 avril 2017
#
# ------------------------------------------------------------------------
# Packages ----------------------------------------------------------------
library( data.table )
library( ggplot2 )
# Config ------------------------------------------------------------------
config <- list()
config$rep$base <- getwd()
config$rep[["examples"]] <- file.path( config$rep$base, "examples" )
config$rep[["inst"]] <- file.path( config$rep$base, "inst" )
config$rep[["man"]] <- file.path( config$rep$base, "man" )
config$rep[["R"]] <- file.path( config$rep$base, "R" )
config$rep[["test"]] <- file.path( config$rep$base, "test" )
# Functions ---------------------------------------------------------------
for (i in list.files(path = "funs", pattern = "\\.R$")) {
source(i)
}
for (i in list.files(path = "R_funs", pattern = "\\.R$")) {
source(i)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.