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 <fis...@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 <spurdl...@gmail.com> wrote: >> >> shell ("Java -version 2>&1", intern=TRUE) > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > ______________________________________________ R-help@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.