Skip to content

Instantly share code, notes, and snippets.

@goddoe
Created December 26, 2017 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goddoe/9024029c83bc417c0d35c110c59c9411 to your computer and use it in GitHub Desktop.
Save goddoe/9024029c83bc417c0d35c110c59c9411 to your computer and use it in GitHub Desktop.
library(miniCRAN)
# Create local cran directory
repo <- 'http://cran.nexr.com'
dir.create(pth <- file.path('local_cran'))
# Sync All Available Repositories
avail_pkgs <- pkgAvail(repos= repo, type='source')[,1]
makeRepo(avail_pkgs, path=pth, repos=repo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment