-
Notifications
You must be signed in to change notification settings - Fork 90
/
package_installs.R
67 lines (51 loc) · 2.46 KB
/
package_installs.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
library(devtools)
options(repos = c("CRAN" = "http://cran.us.r-project.org"))
options(Ncpus = parallel::detectCores())
# Set download method, to avoid the default behavior of using
# R's internal HTTP implementation, which doesn't support HTTPS connections.
# https://stackoverflow.com/questions/45061272/r-and-ssl-curl-on-ubuntu-linux-failed-ssl-connect-in-r-but-works-in-curl
options(download.file.method = "libcurl")
# Install the lightGBM installer package
install_github("Laurae2/lgbdl")
lgbdl::lgb.dl(compiler = "gcc", commit = "tags/v2.3.1")
install_github("dgrtwo/widyr")
install_github("ellisp/forecastxgb-r-package/pkg")
install_github("rstudio/leaflet")
# install_github fails for catboost.
# Following direct installation instructions instead: https://tech.yandex.com/catboost/doc/dg/installation/r-installation-binary-installation-docpage/
install_url('https://github.com/catboost/catboost/releases/download/v0.23.2/catboost-R-Linux-0.23.2.tgz', INSTALL_opts = c("--no-multiarch"))
install_github("sassalley/hexmapr")
install_github("hadley/multidplyr")
install_github("dselivanov/LSHR")
# install latest sparklyr and Spark (for local mode)
install_github("rstudio/sparklyr")
sparklyr::spark_install()
install.packages("genderdata", repos = "http://packages.ropensci.org")
install.packages("openNLPmodels.en",
repos = "http://datacube.wu.ac.at/",
type = "source")
install_github("davpinto/fastknn")
install_github("mukul13/rword2vec")
# b/232137539 Removed from RCRAN but required for Neurohacking in R coursera course
install_github("muschellij2/neurobase")
install_github("muschellij2/fslr")
# These signal processing libraries are on CRAN, but they require apt-get dependences that are
# handled in this image's Dockerfile.
install.packages("fftw")
# https://github.com/Kaggle/docker-rstats/issues/74
install_github("thomasp85/patchwork")
# https://github.com/Kaggle/docker-rstats/issues/73
install.packages("topicmodels")
install.packages("tesseract")
# Try to reinstall igraph and imager her until fixed in rcran.
install.packages("igraph")
install.packages("imager")
# Torch: install the full package upfront otherwise it will be installed on loading the package which doesn't work for kernels
# without internet (competitions for example).
install.packages("torch")
library(torch)
install_torch()
install.packages(c('collections', 'languageserver'), dependencies=TRUE)
# The tfhub package is added to the rcran image.
library(tfhub)
install_tfhub()