Last active
April 9, 2025 06:46
-
-
Save remlapmot/1fc5964d704b8568ef7698b521bcc1b2 to your computer and use it in GitHub Desktop.
.Renviron file which sets environment variables in an R session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GITHUB_PAT=# use gitcreds instead | |
# delete .tar.gz after checking package | |
R_KEEP_PKG_SOURCE=no | |
# first download JAVA JDK | |
JAVA_HOME="C:/Program Files/Java/jdk-16.0.1" | |
# first download and install JAGS | |
JAGS_HOME="C:/Program Files/JAGS/JAGS-4.3.0" | |
# set in $HOME/.R/Makevars.win # JAGS_ROOT="C:/Program Files/JAGS/JAGS-4.3.0" | |
# On Windows ensure use of latest SumatraPDF | |
R_PDFVIEWER="C:/Users/tom/AppData/Local/SumatraPDF/SumatraPDF.exe" | |
# On Windows 10, fix for my problems with remotes::install_github() | |
# Use openssl backend, as described in the curl vignette | |
# https://cran.r-project.org/web/packages/curl/vignettes/windows.html | |
# CURL_SSL_BACKEND=openssl | |
# On Ubuntu (on WSL) | |
# Note: it's better to set this in Renviron.site which is in ${R_HOME}/etc (/usr/lib/R/etc) | |
PATH=${PATH}:/usr/local/stata17:${HOME}/.TinyTeX/bin/x86_64-linux | |
# On macOS | |
PATH=${PATH}:/opt/homebrew/bin:/usr/local/bin # :/usr/local/gfortran/bin | |
# disable check for timestamps on files | |
_R_CHECK_SYSTEM_CLOCK_=0 | |
# disable debug flags when building dll | |
PKG_BUILD_EXTRA_FLAGS="false" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Windows 10, fix for my problems with
remotes::install_github()
.Use openssl backend, as described in the curl vignette https://cran.r-project.org/web/packages/curl/vignettes/windows.html .