Gets the system command needed to run Java from the command line, as a string.
Typically, this is the string: 'java'.
However, if the R session has the
JAVA_HOME environmental variable set, it will use that to locate java instead.
This can be persisted over sessions (see the Details below).
The system command needed to invoke Java, as a string.
This function is used by all of the
tika() functions internally as the default value to its
This function tries to find an environmental variable using
It looks for the
java executable inside the
bin directory in the
If you want to use a specific version of Java, set the
JAVA_HOME variable using
Sys.setenv(JAVA_HOME = 'my path'),
where 'my path' is the path to a folder that has a
bin directory with a
For example, on Windows 10
JAVA_HOME might be
C:/Program Files (x86)/Java/jre1.8.0_171.
On Ubuntu and OS X, it might be the
JAVA_HOME variable can also be set to persist over sessions.
Add the path to the
.Rprofile by adding
Sys.setenv(JAVA_HOME = 'my path'), and it will use that every time R is started.
# Typically, this function returns the string 'java'. # If JAVA_HOME is set, it's a path to java in a 'bin' folder. java()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.