Sources only the functions discovered in an R file
Usage
source_funcs(file, env = .GlobalEnv)
Arguments
- file
= a connection object or a character string path to a file.
- env
the environment in which to source the functions
IMPORTANT !!!
sourcing this file is a mistake - may result in infinite recursion
Examples
if (FALSE) { # \dontrun{
file <- "<PATH>/file.R"
source_funcs(file)
} # }