#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.