tika_jar: Path to Apache Tika

View source: R/tika_jar.R

tika_jarR 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/'))


ropensci/rtika documentation built on May 11, 2023, 5:38 p.m.