Post

1 follower Follow
0
Avatar

DYLD_FALLBACK_LIBRARY_PATH not set correctly in Rstudio

When R is loaded within Rstudio (1.1.419 or 1.2.308),  DYLD_FALLBACK_LIBRARY_PATH is Sys.getenv() is not set correctly:

within Rstudio 1.1.419
Sys.getenv() gives
DYLD_FALLBACK_LIBRARY_PATH
/Library/Frameworks/R.framework/Resources/lib:/Users/marcgirondot/lib:/usr/local/lib:/usr/lib::
within Rstudio 1.2.308
Sys.getenv() gives
DYLD_FALLBACK_LIBRARY_PATH
/Library/Frameworks/R.framework/Resources/lib:/Users/marcgirondot/lib:/usr/local/lib:/usr/lib::

R in terminal
Sys.getenv() gives
DYLD_FALLBACK_LIBRARY_PATH
/Library/Frameworks/R.framework/Resources/lib:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/server

Only the last one is correct.

##########

> R.Version()

$platform

[1] "x86_64-apple-darwin15.6.0"

$arch

[1] "x86_64"

$os

[1] "darwin15.6.0"

$system

[1] "x86_64, darwin15.6.0"

$status

[1] "Under development (unstable)"

$major

[1] "3"

$minor

[1] "5.0"

$year

[1] "2018"

$month

[1] "01"

$day

[1] "26"

$`svn rev`

[1] "74169"

$language

[1] "R"

$version.string

[1] "R Under development (unstable) (2018-01-26 r74169)"

$nickname

[1] "Unsuffered Consequences"

 

Marc Girondot