installLocalPackage | R Documentation |
Installs or reinstalls a local R package from the specified directory. Useful during development to ensure the package is rebuilt with updated source code and documentation.
installLocalPackage(sPackageDirPath)
sPackageDirPath |
Character string. Path to the local package directory. |
The function performs the following steps:
- Ensures 'remotes' and 'roxygen2' are installed.
- Generates updated documentation using roxygen2::roxygenise()
.
- Detaches the package if already loaded.
- Deletes compiled files such as .o, .so, or .dll for a clean rebuild.
- Installs the package using remotes::install_local()
.
Invisibly returns NULL
. Prints installation progress and success/failure messages.
install_local
, roxygenise
## Not run:
installLocalPackage()
installLocalPackage("/path/to/custom/package_dir")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.