-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.R
73 lines (69 loc) · 1.49 KB
/
install.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
68
69
70
71
72
list.of.packages <- c(
# inspect code performance
"profvis",
# interactivity
"leaflet",
"leaflet.extras",
"leafpop",
"leaftime",
"rhandsontable",
"highcharter",
"av",
"gganimate",
# geoprocessing
"fasterize",
"geojsonlint",
"spatstat",
"stars",
"lwgeom",
# graphics extras
"ggExtra",
"sparkline",
"processx",
"webshot",
"imager",
# process mining
"bupaR",
"edeaR",
"eventdataR",
"processmapR",
"processmonitR",
"processanimateR",
# parallel processing
"doParallel",
# presentation
"flexdashboard",
"bookdown",
"gt",
# training
"nycflights13",
"gapminder",
"Lahman",
# h2o dependencies
"h2o",
# automation
"blastula",
"tidyRSS",
# munging
"janitor",
"googlesheets4",
"xlsx",
"snakecase",
"widyr",
# actual stats \
"caTools",
# database \
"RPostgres",
# text mining \
"textdata",
"tidytext",
# timeseries \
"timetk")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
# use posit binary linux packages
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"])))
options(repos="https://packagemanager.rstudio.com/all/__linux__/focal/latest", Ncpus=3)
source("https://docs.posit.co/rspm/admin/check-user-agent.R")
Sys.setenv("NOT_CRAN" = TRUE)
# Install packages
if(length(new.packages)) install.packages(new.packages)