Learn R Programming

trackr (version 0.10.7)

jsonTDB: Convenience constructors for specific trackr backends

Description

Convenience constructors for JSON and Solr-based trackr backends.

Usage

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

Run this code
# NOT RUN {
tdb = jsonTDB(tempfile())

tdb2 = listTDB()
# }

Run the code above in your browser using DataLab