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
>
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
> 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
3 matches
Mail list logo