1 | initial version |
To recreate or rebuild the installed version of an R source package, follow these steps:
install.packages("devtools")
library(devtools)
build()
function to build the package from the source. Specify the path to the source package directory as the argument. For example:build("path/to/package/source")
This will create tar.gz file of the package in the current working directory.
Install the built package by running:
install.packages("path/to/package.tar.gz", repos=NULL, type="source")
The package should now be rebuilt and installed in your R environment.