Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/configureBasiliskEnv.R
Configure the basilisk environments in the configure
file of client packages.
1 | configureBasiliskEnv(src = "R/basilisk.R")
|
src |
String containing path to a R source file that defines one or more BasiliskEnvironment objects. |
This function is designed to be called in the configure
file of client packages,
triggering the construction of basilisk environments during package installation.
It will only run if the BASILISK_USE_SYSTEM_DIR
environment variable is set to "1"
.
We take a source file as input to avoid duplicated definitions of the BasiliskEnvironments.
These objects are used in basiliskStart
in the body of the package, so they naturally belong in R/
;
we then ask configure
to pull out that file (named "basilisk.R"
by convention)
to create these objects during installation.
The source file in src
should be executable on its own,
i.e., you can source
it without loading any other packages (beside basilisk, obviously).
Non-BasiliskEnvironment objects can be created but are simply ignored in this function.
One or more basilisk environments are created
corresponding to the BasiliskEnvironment objects in src
.
A NULL
is invisibly returned.
Aaron Lun
setupBasiliskEnv
, which does the heavy lifting of setting up the environments.
1 2 3 4 | ## Not run:
configureBasiliskEnv()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.