cdbGetDoc: Get a doc from CouchDB

Description Usage Arguments Value Author(s) See Also Examples

View source: R/cdbGetDoc.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
## Not run: 
ccc               <- cdbIni()
ccc$newDBName     <- "r4couchdb_db"
ccc$dataList      <- list(normalDistRand =  rnorm(20))
ccc               <- cdbAddDoc(ccc)
cdbGetDoc(ccc)$res

## End(Not run)

R4CouchDB documentation built on May 29, 2017, 7:10 p.m.