[R] Identifying presence of Java
Simon Urbanek
@|mon@urb@nek @end|ng |rom R-project@org
Mon Nov 11 06:33:38 CET 2019
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 <fisher using plessthan.com> wrote:
>
> 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 their suggestions.
>
> Dennis
>
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone / Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com <http://www.plessthan.com/>
>
>
>
>
>> On Nov 10, 2019, at 11:49 AM, Abby Spurdle <spurdle.a using gmail.com> wrote:
>>
>> shell ("Java -version 2>&1", intern=TRUE)
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list