proj_library | R Documentation |
This will source all *.R files in the R subdirectory of the current project. It loads their contents into a new environment, and attaches that environment at the top of the search path (but underneith the global environment).
proj_library(dir = NULL, ...)
dir |
Path of |
... |
Passed to |
If calls to library() or require() are needed, all such calls must be collected into a special file called "packages.R" (and that file should contain only calls to library() and/or require()). Otherwise, the packages will be loaded into the wrong place on the search list.
Nothing
proj_source for sourcing project files into the global environment, detach for removing the new environment from the search path.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.