Other Commands
rv
has a few other commands available, that are not as frequently used in day-to-day workstreams.
rv library
Section titled “rv library”Returns the relative path of the library in UNIX format, even on Windows.
rv library [OPTIONS]
Example
Section titled “Example”$ rv librarysrc/configs/rv/library/4.4/arm64
rv cache
Section titled “rv cache”Returns the absolute paths of the cache and which cache subdirectory corresponds to each repository used in the project.
rv cache [OPTIONS]
Example
Section titled “Example”$ rv cache/Users/rv-user/.cache/rvPPM (https://packagemanager.posit.co/cran/latest -> f4780dda90), path: /Users/rv-user/.cache/rv/f4780dda90
rv info
Section titled “rv info”List simple information regarding the project dependending on the flags. Used primarily to properly set the library path and repositories during project activation in R.
rv info [OPTIONS]
Options
Section titled “Options”--library
- The same asrv library
--r-version
- The R version specified in the config--repositories
- The repositories specified in the config
Example
Section titled “Example”$ rv info --library --r-version --repositorieslibrary: src/configs/rv/library/4.4/arm64r-version: 4.4repositories: (PPM, https://packagemanager.posit.co/cran/latest)
rv activate
Section titled “rv activate”Activate a previously initialized project. This command will set-up the .Rprofile to activate the rv
library paths and .rv
R enviroment.
For interactive sessions, your R session should be restarted after activation.
rv activate [OPTIONS]
Options
Section titled “Options”--no-r-enviroment
- Disable to.rv
R enviroment. Seervr
for more information.
rv deactivate
Section titled “rv deactivate”Deactivate a previously initialized project. This command will turn off the rv
library paths and .rv
R enviroment for use.
For interactive sessions, your R session should be restarted after activation.
rv deactivate [OPTIONS]