R package binaries - rpkgs.com

Partial R version support. Check the (fully) supported R versions for each distribution through the 'amd64/arm64' tabsets.

Generic repository definition

# set HTTP user agent
os_release <- readLines("/etc/os-release")
name_line <- grep("^NAME=", os_release, value = TRUE)
name <- sub('^NAME="(.*)"$', '\\1', name_line)
version_line <- grep("^VERSION_ID=", os_release, value = TRUE)
version <- sub('^VERSION_ID="(.*)"$', '\\1', version_line)
options(HTTPUserAgent = sprintf(
"R/%s (%s %s) (%s)",
getRversion(),
name,
version,
paste(R.version["platform"], R.version["arch"], R.version["os"])
))
# set repository URL
options(repos = "cran.rpkgs.com")
# install package
install.packages("brew")
This repository URL works for any architecture and OS supported by rpkgs.com. To make these changes persist across sessions, place them in ~/.Rprofile or your project's .Rprofile. Check the documentation in case of any issues.