Skip to content

Commit

Permalink
add empty library directory
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzwalthert committed Feb 15, 2021
1 parent e71cc39 commit 0816a4f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testing/get-renv.ps1
@@ -0,0 +1,7 @@
$dir = "C:\R\R-win.exe"
$urlR = "https://cran.r-project.org/bin/windows/base/R-4.0.3-win.exe"
$outputR = "$dir\R-win.exe"
$wcR = New-Object System.Net.WebClient
$wcR.DownloadFile($urlR, $outputR)
$dirR = $dir + "R-win.exe"
Start-Process -FilePath $dirR -ArgumentList "/S /v/qn"
7 changes: 7 additions & 0 deletions testing/get-renv.sh
@@ -1,2 +1,9 @@
#!/usr/bin/env bash
sudo apt install r-base
# create empty folder for user library.
# necessary for non-root users who have
# never installed an R package before.
# Alternatively, we require the renv
# package to be installed already, then we can
# omit that.
Rscript -e 'dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)'

0 comments on commit 0816a4f

Please sign in to comment.