cdbGetDoc {R4CouchDB}R Documentation

Get a doc from CouchDB

Description

With a given cdb$id this function requests the document.

Usage

cdbGetDoc(cdb)

Arguments

cdb

Beside cdb$serverName, cdb$port and cdb$DBName the cdb$id must be given. R errors are reported

in cdb$errors

Value

cdb

The result of the request is stored in cdb$res after converting the answer into a list using fromJSON(). If a list entry needed in cdb is not provided cdb$error gives some information.

Author(s)

wactbprot

See Also

cdbAddDoc()

Examples

## Not run: 
ccc               <- cdbIni()
ccc$newDBName     <- "r4couchdb_db"
ccc$dataList      <- list(normalDistRand =  rnorm(20))
ccc               <- cdbAddDoc(ccc)
cdbGetDoc(ccc)$res

## End(Not run)

[Package R4CouchDB version 0.7.5 Index]