rtika (version 1.22)

tika_jar: Path to Apache Tika

Description

Gets the path to the Tika App .jar installed by tika_install().

Usage

tika_jar()

Arguments

Value

A string describing the file path to the Tika App .jar file. If not found, NA.

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.

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.

Examples

Run this code
# 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 DataCamp Workspace