Modifies R package records of renv
for this project
Arguments
- project_path
path to the project
- pkg_name
name of the package to be added or updated
- pkg_version
pkg version, if not provided, tries to retrieve the latest from RSPM
- pkg_sha
sha as recorded on the repository. tries to retrieve the latest from RSPM
- repo_name
by default RSPM
- repo_url
url corresponding to the repo where the package is
- force_repo_overwrite
T/F. Use with caution. Changing this, will change the url corresponding to the repo name/alias universally and may break the lock file
- verbose
T/F
Details
This is primarily intended to enable updating package that are
not on CRAN or GitHub (e.g. RSPM packages). renv::update
can update when
packages are on CRAN or GitHub. However as core packages of DaaPR
are
internal, this helper function is currently needed. Note, currently update
to packages from git are not supported. To update DaaPR elements, set install
options to RSPM options(repos = <RSPM URL>)
Update DaaPR > run this
function to update all DaaPR packages on renv.lock > Delete renv
folder >
run renv::restore()
> Follow subsequent steps.