Skip to content

Instantly share code, notes, and snippets.

@bheavner
Last active March 29, 2016 23:22
Show Gist options
  • Save bheavner/a8709acf26e02a6fb5015e20fab12837 to your computer and use it in GitHub Desktop.
Save bheavner/a8709acf26e02a6fb5015e20fab12837 to your computer and use it in GitHub Desktop.
library install checking for short course
print("Hi from github :)")
print("Do you have randomForest?")
# do we want specific versions?
if(!require(randomForest, quiet = TRUE)){
install.packages("randomForest", quiet=TRUE)
suppressWarnings(library(randomForest))
}
print("You do now!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment