A cli of r utilities aimed at package and .Rprofile management.
rut
depends on R and python3 (poetry and click).
Currently, this project is not on pypi, but you can install using the below instructions if you have poetry installed.
$ git clone https://github.com/datasnakes/rut.git
$ cd rut
$ poetry build
$ pip install dist/rut-0.1.0-py3-none-any.whl
The current implementation of rut
uses R's remotes package to install packages.
Soon, jetpack will be integrated to allow for better global management of user packages and in the future, local/project package management.
rut install cran
allows installation using the default/global CRAN repository.
Additionally, the user may pass a different repository to -r
.
$ rut install cran ggpubr
Running in R: remotes::install_cran(c('ggpubr'), repos='http://cloud.r-project.org/')
For help with rut install cran
, type rut install cran --help
.
$ rut install cran --help
Usage: rut install cran [OPTIONS] [PACKAGES]...
Install packages from CRAN.
Specify versions using the following format: pkgA=1.4 pkgB=2.1
Options:
-r, --repos TEXT CRAN repository
-f, --force TEXT Force install package
-u, --upgrade TEXT Upgrade out-of-date packages
--help Show this message and exit.