Skip to content

Instantly share code, notes, and snippets.

@meyera
Created September 12, 2014 19:05
Show Gist options
  • Save meyera/4f4598ebd8c32198eff5 to your computer and use it in GitHub Desktop.
Save meyera/4f4598ebd8c32198eff5 to your computer and use it in GitHub Desktop.
#!/usr/bin/env r
#
# a simple example to update packages in /usr/local/lib/R/site-library
# parameters are easily adjustable
repos <- "http://cran.rstudio.com"
lib.loc <- "/usr/local/lib/R/site-library"
update.packages(repos=repos, ask=FALSE, lib.loc=lib.loc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment