revdeprun
One-key reverse dependency checks for R via revdepcheck with cloud-ready environment setup.
Installation
Install system dependencies for building Rust crates and building R package dependencies of revdepcheck:
Install revdeprun from crates.io using Cargo:
To try the latest development version directly from GitHub:
Requirements
- Ubuntu 20.04 or newer with
sudoaccess (tooling usesapt-get,gdebi, and system-wide/opt/Rinstalls). - Network access to download R binaries, R packages, and the target Git repository.
- Git available on
PATH.
Running inside a fresh cloud instance is recommended because reverse dependency checks execute third-party code.
Usage
The CLI provisions the requested R toolchain, prepares the package repository,
and runs revdepcheck end-to-end:
By default, the current release version of R for Ubuntu is installed and the number of workers is set to use all available CPU cores.
Command options
$ revdeprun --help
Provision R and run revdepcheck end-to-end
Usage: revdeprun [OPTIONS] <REPOSITORY>
Arguments:
<REPOSITORY> Git URL or filesystem path pointing to the target R package repository
Options:
--r-version <R_VERSION> R version specification to install (e.g. release, 4.3.3, oldrel-1) [default: release]
--num-workers <N> Number of parallel workers to pass to revdepcheck
--work-dir <WORK_DIR> Optional workspace directory where temporary files are created
--skip-r-install Skip installing R and reuse the system-wide installation
-h, --help Print help
-V, --version Print version
Typical workflow
- Provision a clean Ubuntu VM with sufficient CPU and memory.
- Install
revdeprun(for example,cargo install revdeprun). - Run
revdeprun <repo>with optional flags, such as:revdeprun --r-version release https://github.com/nanxstats/ggsci.gitrevdeprun --num-workers 48 --work-dir /data/workspace git@github.com:nanxstats/ggsci.git
- Review the results under
<repo>/revdep.
Notes
revdepruninstalls R into/opt/R/...and symlinks binaries to/usr/local/bin.- The tool uses the latest development version of revdepcheck via
remotes::install_github("r-lib/revdepcheck"). - If you already provision R and required packages, pass
--skip-r-install. - To point at a local checkout instead of cloning, supply the path directly:
revdeprun ~/workspace/ggsci.