rip (R Install Package) is a lightweight CLI wrapper around Rscript written in Rust that simplifies installing R packages through terminal commands.
- Install single or multiple packages in one command
- Default CRAN mirror set to
https://cloud.r-project.org/ - Optionally specify a different repository with
-r/--repository - Optionally install to a library path with
-l/--library
- Rust toolchain (e.g., via rustup)
- R with
Rscriptavailable on yourPATH
cargo install --git https://github.com/albersonmiranda/riprip [OPTIONS] <PACKAGE> [<PACKAGE> ...]
Examples:
# Install a single package
rip ggplot2
# Install multiple packages at once
rip ggplot2 lubridate mlr3
# Use a custom CRAN mirror
rip -r https://cran.rstudio.com/ dplyr
# Install into a specific library path
rip -l /path/to/R/library ggplot2Options:
-r, --repository <REPOSITORY> CRAN mirror URL [default: https://cloud.r-project.org/]
-l, --library <LIBRARY> Path to install package library (optional)
-h, --help Print help information
-V, --version Print version information
If installed via Cargo:
cargo uninstall ripContributions, issues, and feature requests are welcome! Feel free to open a PR or issue.
This project is licensed under the MIT License. See LICENSE for details.