powered by
Gets the path to the Tika App .jar installed by tika_install().
.jar
tika_install()
tika_jar()
A string describing the file path to the Tika App .jar file. If not found, NA.
NA
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.
sys
system2()
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.
tika()
# NOT RUN { 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/')) # }
Run the code above in your browser using DataLab