source_local Transforms a relative path to an absolute one, and sources the path. This helps source files located relatively to the main script without the need to know from where it was run.
source_local(..., env = FALSE, do_print = FALSE, keep_source = TRUE)a vector resulting from the sourcing of the files provided.
paths, character vector of file paths to source
an environement in which to source the paths
a logical, telling whether to print sourced paths or not
See the parameter keep.source from source