Wouldn't that be the usual way... by exporting environment variables? You can cobble together the right settings using Sys.setenv(), but this kind of thing is best handled in your user-level OS configuration (~/.profile?) and this is not the right place to learn about how to muck with your OS.
On August 31, 2018 4:58:57 PM PDT, Jiayue Wang <[email protected]> wrote: >My Java interpreter etc. are not in the "standard" paths (I use Oracle >JDK, which was installed in /opt) so I keep getting error messages when > >I tried to install packages that depend on rJava. How should Java >runtime specs be specified? > >Thanks > >Sasha > >______________________________________________ >[email protected] 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. -- Sent from my phone. Please excuse my brevity. ______________________________________________ [email protected] 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.

