Re: [R] Identifying presence of Java

2019-11-10 Thread Simon Urbanek
FWIW you cannot assume that java will be on the PATH - especially on Windows it typically is not. That’s why rJava uses registry on Windows to find the Java location. For other platforms there is R CMD config JAVA Cheers, Simon > On Nov 10, 2019, at 3:26 PM, Dennis Fisher wrote: > > Abby >

Re: [R] Identifying presence of Java

2019-11-10 Thread Dennis Fisher
Abby I assume that your OS in Windows — shell is Windows only. Fortunately, it appears that the changing “shell” to “system” works in OS X. So, now I have a solution for both OSs. This issue was a prelude to a larger issue that I will address in a separate email. Thanks to everyone for thei

Re: [R] Identifying presence of Java

2019-11-10 Thread Abby Spurdle
> These seem to work for me: > system("Java -version 2>&1", intern = TRUE) > > system2("Java","-version", stdout = TRUE, stderr = TRUE) > Hi Dennis I tried your example and Duncan's examples. In your example, I get zero. The second of Duncan's examples worked for me, but not the first. I've