create_indices_db: Create the indices database

Description Usage Arguments Note Author(s)

Description

The internal function checks if indices.json (the database of spectral indices) already exists; if not, it downloads source files and creates it. Since this function depends on xsltproc executable (available inly for Linux), this function can be used only from from Linux. It is not necessary, since a indices.json file is present in the package.

Usage

1
create_indices_db(xslt_path = NA, json_path = NA, force = FALSE)

Arguments

xslt_path

(optional) The path where to install xsltml, an external xsltproc script used to convert MathML index formulas to LaTeX (default: a subdirectory of the package).

json_path

(optional) The path of the output JSON file. Warning: to create a file which wil be usable by the package, this option must be left to NA (default location is within the package installation). Edit this only to create the file in another place for external use.

force

(optional) Logical: if FALSE (default), the db is created only if missing or not updated; if TRUE, it is created in any case.

Note

License: GPL 3.0

Author(s)

Luigi Ranghetti, phD (2017) ranghetti.l@irea.cnr.it


pobsteta/theia2r documentation built on May 25, 2019, 2:21 p.m.