Run R from the command line
// The log file is output to track R's progress
R CMD BATCH --vanilla path/to/file.R file.log &
DZone Snippets > mroutley > osx
12387 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Matthew Routley http://matt.routleynet.org
R CMD BATCH --vanilla path/to/file.R file.log &
spotlight<-function(word) { place<-paste(Sys.getenv("R_HOME"),"/library/",sep="") string<-paste("mdfind -onlyin",place,word,"|",getOption("pager")) system(string, intern=TRUE) }