tika_jar {rtika} | R Documentation |
Path to Apache Tika
Description
Gets the path to the Tika App .jar
installed by tika_install()
.
Usage
tika_jar()
Value
A string describing the file path to the Tika App .jar
file. If not found, NA
.
Details
The tika_jar()
function also checks if the .jar
is actually on the file system.
The file path is used by all of the tika()
functions by default.
Alternative Uses
You can call Apache Tika directly, as shown in the examples here.
It is better to use the sys
package and avoid system2()
,
which has caused erratic, intermittent errors with Tika.
Examples
jar <- tika_jar()
# see help
sys::exec_wait('java',c('-jar',jar, '--help'))
# detect language of web page
sys::exec_wait('java',c('-jar',jar, '--language','https://tika.apache.org/'))
[Package rtika version 2.7.0 Index]