Writes a script file that contains code that loads a given development package.
load_all_file(path = path.package(package), package, dest = NULL)
a character string that contains the path to the script file.
a character string that contains the path to the development package.
the name of the package for which the loading script must be generated. It must be a package that has already been loaded with devtools::load_all in the current session, so that its path can be retrieved.
the path to script file to create (as a character string).
If not provided, then the script is written in a temporary .R file with prefix
"load_all_<pkgname>_"
.
This is useful when we want to load a development package in batchtools
registries:
library(devtools)
library(batchtools)load_all("path/to/pkgA")
makeRegistry(..., source = load_all_file("pkgA"))