Skip to content

Instantly share code, notes, and snippets.

@zorbax
Last active September 10, 2021 09:43
Show Gist options
  • Save zorbax/9408718dca878c59a3166f35c7fa7501 to your computer and use it in GitHub Desktop.
Save zorbax/9408718dca878c59a3166f35c7fa7501 to your computer and use it in GitHub Desktop.
# Install current version from CRAN:
# https://cran.r-project.org/bin/macosx/R-4.0.0.pkg
# Get which version of R a package was built with
pkgs <- as.data.frame(installed.packages(), stringsAsFactors = FALSE, row.names = FALSE)
pkgs[, c("Package", "Version", "Built")]
# Update packages, source instead binary for MacOS
update.packages(ask = FALSE, checkBuilt = TRUE, type = 'source')
# Some rebeld binary packages
update.packages(ask = FALSE, checkBuilt = TRUE)
remove.packages("BiocVersion")
BiocManager::install(ask = FALSE, type = 'source', checkBuilt = TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment