Skip to content

Other Commands

rv has a few other commands available, that are not as frequently used in day-to-day workstreams.

Returns the relative path of the library in UNIX format, even on Windows.

Terminal window
rv library [OPTIONS]
Terminal window
$ rv library
src/configs/rv/library/4.4/arm64

Returns the absolute paths of the cache and which cache subdirectory corresponds to each repository used in the project.

Terminal window
rv cache [OPTIONS]
Terminal window
$ rv cache
/Users/rv-user/.cache/rv
PPM (https://packagemanager.posit.co/cran/latest -> f4780dda90), path: /Users/rv-user/.cache/rv/f4780dda90

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.

Terminal window
rv info [OPTIONS]
  • --library - The same as rv library
  • --r-version - The R version specified in the config
  • --repositories - The repositories specified in the config
Terminal window
$ rv info --library --r-version --repositories
library: src/configs/rv/library/4.4/arm64
r-version: 4.4
repositories: (PPM, https://packagemanager.posit.co/cran/latest)

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.

Terminal window
rv activate [OPTIONS]
  • --no-r-enviroment - Disable to .rv R enviroment. See rvr for more information.

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.

Terminal window
rv deactivate [OPTIONS]