R/rin.R

Defines functions rin

Documented in rin

#' install packages from cran2copr
#'
#' Avoids using R-CoprManager which previous caused me issues when experimenting
#'   with renv.
#'
#' @param pkgs A character vector of packages to install
#'
#' @returns result of call to `system()`
#'
#' @export
rin <- function(pkgs) {
  pkgs <- paste0("R-CRAN-", pkgs, collapse = " ")
  cmd <- sprintf("sudo dnf install %s", pkgs)
  system(cmd)
}
tjtnew/coffee documentation built on Dec. 23, 2021, 11 a.m.