conv_constr: Convenience constructors for specific trackr backends

Description Usage Arguments Value Examples

Description

Convenience constructors for JSON and Solr-based trackr backends.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
jsonTDB(
  file = "~/.trackr/objdb.json",
  opts = TrackrOptions(img_dir = img_dir, ...),
  img_dir = file.path(dirname(file), "images"),
  ...
)

solrTDB(core, requestHandler = "search", opts = TrackrOptions(...), ...)

listTDB(data = list(), opts = TrackrOptions(...), ...)

Arguments

file

character. The json file to use

opts

TrackrOptions. The options for the DB

img_dir

character. The directory plot images should be saved into. Passed to default construction of opts. Defaults to <directory of file>/images. ignored if opts is specified explicitly.

...

ANY. Used to construct opts. Ignored if opts is specified explicitly.

core

character. The URI for the solr core to use

requestHandler

character. Passed to SolrList constructor

data

list. Data the ListBackend should be prepopulated with.

Value

A TrackrDB object

Examples

1
2
3
tdb = jsonTDB(tempfile())

tdb2 = listTDB()

gmbecker/recordr documentation built on May 24, 2021, 10:59 a.m.