package_installer:
rm(list = ls())
# File-Name: package_installer.R
# Date: 2012-02-10
# Author: Drew Conway (drew.conway@nyu.edu)
# Purpose: Install all of the packages needed for the Machine Learning for Hackers case studies
# Data Used: n/a
# Packages Used: n/a
# All source code is copyright (c) 2012, under the Simplified BSD License.
# For more information on FreeBSD see: http://www.opensource.org/licenses/bsd-license.php
# All images and materials produced by this code are licensed under the Creative Commons
# Attribution-Share Alike 3.0 United States License: http://creativecommons.org/licenses/by-sa/3.0/us/
# All rights reserved.
# Create a vector containing all of the packages that will be used in the case studies
# (in no particular order)
options(repos=structure(c(CRAN="http://cran.rstudio.com/")))
cran.packages <- c("nycflights13","curl","RCurl","RSQLite","RPostgreSQL","RCassandra","gaoptim","rgenoud","SPOT","GA","pROC","doMC","doParallel","BatchExperiments","batch","batchmeans","x12","twitteR","Rfacebook","Rlinkedin","jpeg","seewave","ggmap","quantmod","WDI","Quandl")
cat("This script will now attempt to install all of the R packages used in 'Machine Learning for Hackers'")
## This script will now attempt to install all of the R packages used in 'Machine Learning for Hackers'
for(p in cran.packages) {
if(!suppressWarnings(require(p, character.only = TRUE, quietly = TRUE))) {
cat(paste(p, "missing, will attempt to install\n"))
install.packages(p, dependencies = TRUE, type = "source")
}
else {
cat(paste(p, "installed OK\n"))
}
}
## nycflights13 installed OK
## curl installed OK
## RCurl installed OK
## RSQLite installed OK
## RPostgreSQL installed OK
## RCassandra installed OK
## gaoptim installed OK
## ## rgenoud (Version 5.7-12, Build Date: 2013-06-28)
## ## See http://sekhon.berkeley.edu/rgenoud for additional documentation.
## ## Please cite software as:
## ## Walter Mebane, Jr. and Jasjeet S. Sekhon. 2011.
## ## ``Genetic Optimization Using Derivatives: The rgenoud package for R.''
## ## Journal of Statistical Software, 42(11): 1-26.
## ##
## rgenoud installed OK
## SPOT installed OK
## GA missing, will attempt to install
##
## The downloaded source packages are in
## '/private/var/folders/tg/z6swp7697356w9r6yr93pccw0000gp/T/RtmpKAhxK8/downloaded_packages'
## Type 'citation("pROC")' for a citation.
##
## Attaching package: 'pROC'
##
## The following objects are masked from 'package:stats':
##
## cov, smooth, var
## pROC installed OK
## doMC installed OK
## doParallel installed OK
## Loading required package: BBmisc
## Sourcing configuration file: '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/BatchJobs/etc/BatchJobs_global_config.R'
## BatchJobs configuration:
## cluster functions: Interactive
## mail.from:
## mail.to:
## mail.start: none
## mail.done: none
## mail.error: none
## default.resources:
## debug: FALSE
## raise.warnings: FALSE
## staged.queries: TRUE
## max.concurrent.jobs: Inf
## fs.timeout: NA
## BatchExperiments installed OK
## batch installed OK
## batchmeans: Consistent Batch Means Estimation of Monte Carlo Standard Errors
## Version 1.0-2 created on 1-6-2015.
## copyright (c) 2012-15, Murali Haran, Penn State University
## John Hughes, University of Minnesota
## For citation information, type citation("batchmeans").
## Type help(package = batchmeans) to get started.
## batchmeans installed OK
## x12 is ready to use.
## Use the package x12GUI for a Graphical User Interface.
##
## It is advised to set the path to the X12 or X13 executables
##
## with x12path(validpath) or x13path(validpath)!
##
## ---------------
##
## Suggestions and bug-reports can be submitted at: https://github.com/alexkowa/x12/issues
##
## Attaching package: 'x12'
##
## The following object is masked from 'package:foreach':
##
## times
## x12 installed OK
##
## Attaching package: 'twitteR'
##
## The following object is masked from 'package:BatchJobs':
##
## showStatus
## twitteR installed OK
##
## Attaching package: 'httr'
##
## The following object is masked from 'package:curl':
##
## handle_reset
##
##
## Attaching package: 'Rfacebook'
##
## The following object is masked from 'package:twitteR':
##
## updateStatus
## Rfacebook installed OK
##
## Attaching package: 'Rlinkedin'
##
## The following object is masked from 'package:BatchJobs':
##
## getJobs
## Rlinkedin installed OK
## jpeg installed OK
## seewave missing, will attempt to install
## also installing the dependencies 'signal', 'tuneR', 'audio', 'fftw', 'rpanel'
## Warning in install.packages(p, dependencies = TRUE, type = "source"):
## installation of package 'signal' had non-zero exit status
## Warning in install.packages(p, dependencies = TRUE, type = "source"):
## installation of package 'fftw' had non-zero exit status
## Warning in install.packages(p, dependencies = TRUE, type = "source"):
## installation of package 'tuneR' had non-zero exit status
## Warning in install.packages(p, dependencies = TRUE, type = "source"):
## installation of package 'seewave' had non-zero exit status
##
## The downloaded source packages are in
## '/private/var/folders/tg/z6swp7697356w9r6yr93pccw0000gp/T/RtmpKAhxK8/downloaded_packages'
## ggmap installed OK
## Loading required package: zoo
##
## Attaching package: 'zoo'
##
## The following objects are masked from 'package:base':
##
## as.Date, as.Date.numeric
##
## Version 0.4-0 included new data defaults. See ?getSymbols.
## quantmod installed OK
##
## Attaching package: 'RJSONIO'
##
## The following objects are masked from 'package:rjson':
##
## fromJSON, toJSON
## WDI installed OK
## Quandl installed OK
print("### All required packages installed ###")
## [1] "### All required packages installed ###"
package_installer:
rm(list = ls())
# File-Name: package_installer.R
# Date: 2012-02-10
# Author: Drew Conway (drew.conway@nyu.edu)
# Purpose: Install all of the packages needed for the Machine Learning for Hackers case studies
# Data Used: n/a
# Packages Used: n/a
# All source code is copyright (c) 2012, under the Simplified BSD License.
# For more information on FreeBSD see: http://www.opensource.org/licenses/bsd-license.php
# All images and materials produced by this code are licensed under the Creative Commons
# Attribution-Share Alike 3.0 United States License: http://creativecommons.org/licenses/by-sa/3.0/us/
# All rights reserved.
# Create a vector containing all of the packages that will be used in the case studies
# (in no particular order)
options(repos=structure(c(CRAN="http://cran.rstudio.com/")))
cran.packages <- c("apt","tseries","TSA","jsonlite","RJSONIO","dplyr","fracdiff","rugarch","fGarch","urca","astsa","RWeka","RWekajars","car","caret","forecast","clue","deldir","Rglpk","PerformanceAnalytics","IBrokers","backtest","stream","streamMOA","RMOA","RMOAjars","lattice","ggplot2","RcolorBrewer","latticeExtra","reshape")
cat("This script will now attempt to install all of the R packages used in 'Machine Learning for Hackers'")
## This script will now attempt to install all of the R packages used in 'Machine Learning for Hackers'
for(p in cran.packages) {
if(!suppressWarnings(require(p, character.only = TRUE, quietly = TRUE))) {
cat(paste(p, "missing, will attempt to install\n"))
install.packages(p, dependencies = TRUE, type = "source")
}
else {
cat(paste(p, "installed OK\n"))
}
}
## Loading required package: lmtest
##
## Attaching package: 'lmtest'
##
## The following object is masked from 'package:RCurl':
##
## reset
##
##
## Attaching package: 'gWidgets'
##
## The following object is masked from 'package:twitteR':
##
## id
##
## The following object is masked from 'package:BBmisc':
##
## insert
## apt installed OK
## tseries installed OK
## locfit 1.5-9.1 2013-03-22
## Loading required package: nlme
##
## Attaching package: 'nlme'
##
## The following object is masked from 'package:Rlinkedin':
##
## getGroups
##
## The following object is masked from 'package:BBmisc':
##
## collapse
##
## This is mgcv 1.8-6. For overview type 'help("mgcv-package")'.
##
## Attaching package: 'TSA'
##
## The following objects are masked from 'package:stats':
##
## acf, arima
##
## The following object is masked from 'package:utils':
##
## tar
## TSA installed OK
## Note: the specification for S3 class "AsIs" in package 'jsonlite' seems equivalent to one from package 'RJSONIO': not turning on duplicate class definitions for this class.
## Note: the specification for S3 class "integer64" in package 'jsonlite' seems equivalent to one from package 'bit64': not turning on duplicate class definitions for this class.
##
## Attaching package: 'jsonlite'
##
## The following objects are masked from 'package:RJSONIO':
##
## fromJSON, toJSON
##
## The following objects are masked from 'package:rjson':
##
## fromJSON, toJSON
##
## The following object is masked from 'package:utils':
##
## View
## jsonlite installed OK
## RJSONIO installed OK
##
## Attaching package: 'dplyr'
##
## The following object is masked from 'package:nlme':
##
## collapse
##
## The following object is masked from 'package:gWidgets':
##
## id
##
## The following objects are masked from 'package:xts':
##
## first, last
##
## The following objects are masked from 'package:twitteR':
##
## id, location
##
## The following object is masked from 'package:BBmisc':
##
## collapse
##
## The following objects are masked from 'package:stats':
##
## filter, lag
##
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
## dplyr installed OK
## fracdiff installed OK
## rugarch installed OK
##
## Attaching package: 'timeDate'
##
## The following objects are masked from 'package:TSA':
##
## kurtosis, skewness
##
##
## Attaching package: 'timeSeries'
##
## The following object is masked from 'package:zoo':
##
## time<-
##
## The following object is masked from 'package:twitteR':
##
## description
##
##
##
## Rmetrics Package fBasics
## Analysing Markets and calculating Basic Statistics
## Copyright (C) 2005-2014 Rmetrics Association Zurich
## Educational Software for Financial Engineering and Computational Science
## Rmetrics is free software and comes with ABSOLUTELY NO WARRANTY.
## https://www.rmetrics.org --- Mail to: info@rmetrics.org
##
## Attaching package: 'fBasics'
##
## The following object is masked from 'package:TTR':
##
## volatility
## fGarch installed OK
## urca installed OK
##
## Attaching package: 'astsa'
##
## The following object is masked from 'package:fBasics':
##
## nyse
## astsa installed OK
## RWeka installed OK
## RWekajars installed OK
##
## Attaching package: 'car'
##
## The following object is masked from 'package:fBasics':
##
## densityPlot
## car installed OK
##
## Attaching package: 'caret'
##
## The following object is masked from 'package:httr':
##
## progress
## caret installed OK
## This is forecast 6.1
##
##
## Attaching package: 'forecast'
##
## The following object is masked from 'package:astsa':
##
## gas
##
## The following objects are masked from 'package:TSA':
##
## fitted.Arima, plot.Arima
##
## The following object is masked from 'package:nlme':
##
## getResponse
## forecast installed OK
## clue installed OK
## deldir 0.1-9
## deldir installed OK
## Using the GLPK callable library version 4.55
## Rglpk installed OK
## PerformanceAnalytics missing, will attempt to install
## also installing the dependencies 'gamlss.data', 'gdata', 'gamlss', 'gamlss.dist', 'gplots'
## Warning in install.packages(p, dependencies = TRUE, type = "source"):
## installation of package 'PerformanceAnalytics' had non-zero exit status
##
## The downloaded source packages are in
## '/private/var/folders/tg/z6swp7697356w9r6yr93pccw0000gp/T/RtmpKAhxK8/downloaded_packages'
## IBrokers missing, will attempt to install
##
## The downloaded source packages are in
## '/private/var/folders/tg/z6swp7697356w9r6yr93pccw0000gp/T/RtmpKAhxK8/downloaded_packages'
## backtest missing, will attempt to install
##
## The downloaded source packages are in
## '/private/var/folders/tg/z6swp7697356w9r6yr93pccw0000gp/T/RtmpKAhxK8/downloaded_packages'
##
## Attaching package: 'proxy'
##
## The following object is masked from 'package:timeSeries':
##
## as.matrix
##
## The following objects are masked from 'package:stats':
##
## as.dist, dist
##
## The following object is masked from 'package:base':
##
## as.matrix
## stream missing, will attempt to install
## also installing the dependencies 'crayon', 'testthat'
##
## The downloaded source packages are in
## '/private/var/folders/tg/z6swp7697356w9r6yr93pccw0000gp/T/RtmpKAhxK8/downloaded_packages'
## streamMOA missing, will attempt to install
##
## The downloaded source packages are in
## '/private/var/folders/tg/z6swp7697356w9r6yr93pccw0000gp/T/RtmpKAhxK8/downloaded_packages'
##
## Attaching package: 'rJava'
##
## The following object is masked from 'package:RCurl':
##
## clone
##
##
## Attaching package: 'RMOA'
##
## The following object is masked from 'package:RWeka':
##
## DecisionStump
## RMOA installed OK
## RMOAjars installed OK
## lattice installed OK
## ggplot2 installed OK
## RcolorBrewer missing, will attempt to install
## Warning: package 'RcolorBrewer' is not available (for R version 3.2.0)
## Warning: Perhaps you meant 'RColorBrewer' ?
##
## Attaching package: 'latticeExtra'
##
## The following object is masked from 'package:ggplot2':
##
## layer
## latticeExtra installed OK
## reshape missing, will attempt to install
##
## The downloaded source packages are in
## '/private/var/folders/tg/z6swp7697356w9r6yr93pccw0000gp/T/RtmpKAhxK8/downloaded_packages'
print("### All required packages installed ###")
## [1] "### All required packages installed ###"