rv info
List simple information regarding the project depending 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- Returns the relative path of the library in UNIX format, even on Windows (alias:rv library)--r-version- The R version specified in the config--repositories- The repositories specified in the config--sandbox- The path of the system library sandbox for the project, building it if it does not exist yet. Prints an empty value when the project does not enable the sandbox
Example
Section titled “Example”% rv info --library --r-version --repositorieslibrary: rv/library/4.4/arm64r-version: 4.4repositories: (PPM, https://packagemanager.posit.co/cran/latest)When the project is sandboxed, --sandbox also reports the path a session would use:
% rv info --sandboxsandbox: /home/me/.cache/rv/sandboxes/4f77a81337/4.5/x86_64/ubuntu-22.04/ee29fbe8c9This is the flag the activate script uses, so it is also the way to see the error behind a
failed to run rv info warning at R startup.