Description Usage Arguments set/clear JAVA_HOME find java
Maven needs java to run. In this case it means that java needs to be available for maven system commands.
1 2 3 4 5 | set_java_home(java_home = find_java(), quiet = FALSE)
find_java()
clear_java_home(quiet = FALSE)
|
java_home |
Character. Indicates location of java on the system. If not provided then the function will attempt to find java using standard install paths. |
quiet |
Logical. If |
Maven needs to know where java is to run. Setting the JAVA_HOME
environment variable can however cause issues with rJava
. If
issues do arise use clear_java_home
after your dependencies are
resolved.
Find a JRE/JDK on the system. This is a convenience function to find java
on the system. It will use getOption(".java.home")
if that is found.
Otherwise it will look in standard install locations depending on the
system platform.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.