Skip to contents

This downloads and installs the Tika App jar (~60 MB) into a user directory, and verifies the integrity of the file using a checksum. The default settings should work fine.


  version = "2.7.0",
  digest = paste0("7fefbe5570a95900d39193134e8277aec99e5450a8",
  mirrors = c("",
    "", "",
  retries = 2,
  url = character()



The declared Tika version


The sha512 checksum. Set to an empty string "" to skip the check.


A vector of Apache mirror sites. One is picked randomly.


The number of times to try the download.


Optional url to a particular location of the tika app. Setting this to any character string overrides downloading from random mirrors.


Logical if the installation was successful.


The default settings of install_tika() should typically be left as they are.

This function will download the version of the Tika jar tested to work with this package, and can verify file integrity using a checksum.

It will normally download from a random Apache mirror. If the mirror fails, it tries the archive at You can also enter a value for url directly to override this.

It will download into a directory determined by tools::R_user_dir("rtika", which = "data"), specific to the operating system.

If tika() is stopping with an error compalining about the jar, try running install_tika() again.


If you are uninstalling the entire rtika package and want to remove the Tika App jar also, run:

unlink(tools::R_user_dir("rtika", which = "data"), recursive = TRUE)

Alternately, navigate to the install folder and delete it manually. It is the file path returned by tools::R_user_dir("rtika", which = "data"). The path is OS specific.


Tika is distributed under the Apache License Version 2.0, which generally permits distribution of the code "Object" without the "Source". The master copy of the Apache Tika source code is held in GIT. You can fetch (clone) the large source from GitHub ( ).


# \donttest{
#> Downloading the Tika App .jar version 2.7.0 into "/github/home/.local/share/R/rtika". The file is approximately 60 MB - this may take a while.
#> Could not download the Tika App .jar from mirror "".
#> Trying the Apache archive.
#> The download is successful.
#> The file integrity is good.
#> The installation is successful.
# }