RStudio is not R, so you'll have ask ask their support how they pick up Java
settings. As you can see they are not taking the correct settings from R so it
may be a bug in RStudio.
Cheers,
Simon
> On Jan 31, 2018, at 2:48 PM, Marc Girondot wrote:
>
> Hi Simon,
>
> Half solution ! Thanks !
Looks like something is overriding R's ldpaths settings.
(R_JAVA_LD_LIBRARY_PATH should be exported with DYLD_FALLBACK_LIBRARY_PATH.)
Do you have any old .Renviron files lying around? Particularly in your home
directory (~)
> On Jan 31, 2018, at 2:48 PM, Marc Girondot wrote:
>
> Hi Simon,
>
Hi Simon,
Half solution ! Thanks !
I remove JAVA_HOME and when R is ran as root or non-root in terminal,
rJava package can be loaded. Great !
But in Rstudio, I have still a problem (see bellow).
Any suggestion ?
Thanks
Marc
> library(rJava)
Erreur : package or namespace load failed for ‘r
It means that you are likely setting JAVA_HOME incorrectly in your user
account. Don't set JAVA_HOME - you'll only likely break things by doing so.
Cheers,
Simon
> On Jan 31, 2018, at 10:52 AM, Marc Girondot wrote:
>
> Thanks for your help:
>
> Here are some results; First in terminal:
>
>
Thanks for your help:
Here are some results; First in terminal:
belinda:~ marcgirondot$ locate libjvm.dylib
/Applications/Xcode.app/Contents/Applications/Application
Loader.app/Contents/itms/java/lib/server/libjvm.dylib
/Library/Internet
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/serve
Seems odd that R can’t find libjvm outside of sudo.
From R, run
Sys.getenv()
and check your DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH variables.
Should be ‘[..]/Home/jre/lib/server’ in there somewhere. Check those paths for
libjvm.dylib
> On Jan 31, 2018, at 8:17 AM, Marc Girondot wr
Sorry... bad news. It works only if R is ran as root. If R is ran as
non-root user:
> library(rJava)
Erreur : package or namespace load failed for ‘rJava’:
.onLoad a échoué dans loadNamespace() pour 'rJava', détails :
appel : dyn.load(file, DLLpath = DLLpath, ...)
erreur : impossible de cha