File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 9
9
# .libPaths() already includes site library for default R version.
10
10
.libPaths(c(.libPaths(), .Library.site ))
11
11
12
+ # The remotes package is installed to install httpgd from GitHub
13
+ # The gdiff package is installed to support visual difference testing
14
+
15
+ # Configure r-universe for binary package installations dynamically
16
+ linux_binary_repo <- function (universe ){
17
+ runiverse <- sprintf(' r-universe.dev/bin/linux/%s-%s/%s/' ,
18
+ system2(' lsb_release' , ' -sc' , stdout = TRUE ),
19
+ R.version $ arch ,
20
+ substr(getRversion(), 1 , 3 ))
21
+ sprintf(' https://%s.%s' , universe , runiverse )
22
+ }
23
+
24
+ # Set repos for CRAN to use r-universe linux binaries
25
+ options(repos = c(
26
+ cran = linux_binary_repo(" cran" )
27
+ ))
28
+
12
29
# For PNG graphics uncomment following lines
13
30
# options(vsc.use_httpgd = FALSE,
14
31
# vsc.dev.args = list(width = 800, height = 600))
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
8
8
software-properties-common \
9
9
subversion \
10
10
libmagick++-dev \
11
+ libpoppler-cpp-dev \
11
12
&& add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0" \
12
13
&& wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \
13
14
&& apt-get update \
@@ -22,9 +23,10 @@ RUN Rscript -e "runiverse <- sprintf('r-universe.dev/bin/linux/%s-%s/%s/', \
22
23
R.version\$ arch, \
23
24
substr(getRversion(), 1, 3)); \
24
25
print('Installing packages...'); \
25
- install.packages(c('languageserver', 'httpgd'), \
26
- repos = c(runiverse = paste0('https://cran.', runiverse), \
27
- nx10 = paste0('https://nx10.', runiverse))); \
26
+ install.packages(c('languageserver', 'gdiff', 'remotes'), \
27
+ repos = c(runiverse = paste0('https://cran.', runiverse))); \
28
+ print('Installing httpgd from GitHub...'); \
29
+ remotes::install_github('nx10/httpgd'); \
28
30
print('Packages installed.')"
29
31
30
32
# Define env var used in GitHub Actions that build and deploy container
You can’t perform that action at this time.
0 commit comments