Learn R Programming

rdwd (version 1.8.0)

checkIndex: 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()
)

Value

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

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()

Author

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

See Also

createIndex

Examples

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

Run the code above in your browser using DataLab