checkIndex: check indexes

View source: R/checkIndex.R

checkIndexR Documentation

check indexes

Description

check indexes. Mainly for internal usage in createIndex(). Not exported, so call it as rdwd:::checkIndex() if you want to run tests yourself. Further test suggestions are welcome!

Usage

checkIndex(
  findex = NULL,
  mindex = NULL,
  gindex = NULL,
  excludefp = TRUE,
  fast = FALSE,
  warn = !quiet,
  logfile = berryFunctions::packagePath(file = "misc/ExampleTests/warnings.txt"),
  quiet = rdwdquiet()
)

Arguments

findex

fileIndex. DEFAULT: NULL

mindex

metaIndex. DEFAULT: NULL

gindex

geoIndex. DEFAULT: NULL

excludefp

Exclude false positives from geoIndex coordinate check results? DEFAULT: TRUE

fast

Exclude the 3-minute location per ID check? DEFAULT: FALSE

warn

Warn about issues? DEFAULT: !quiet (TRUE)

logfile

File to copy log to, appended to existing content. NULL to suppress. DEFAULT: "misc/ExampleTests/warnings.txt"

quiet

Logical: Suppress progress messages? DEFAULT: FALSE through rdwdquiet()

Value

Charstring with issues (if any) to be printed with cat().

Author(s)

Berry Boessenkool, berry-b@gmx.de, May 2019

See Also

createIndex

Examples

data(fileIndex) ; data(metaIndex) ; data(geoIndex)
# ci <- rdwd:::checkIndex(findex=fileIndex, mindex=metaIndex, gindex=geoIndex)
# cat(ci)

rdwd documentation built on July 9, 2023, 5:24 p.m.