Last data update: 2014.03.03
|
R: Ini function
Ini function
Description
Function returns a list with some default settings and often used functions
such as cdb$baseUrl .
Usage
cdbIni(serverName="localhost",
port="5984",
prot = "http",
DBName="",
uname = "",
pwd = "",
newDBName = "",
removeDBName = "",
id = "",
fileName = "",
design = "",
view = "",
list = "",
queryParam = "",
encSub = "?",
count = 10,
dataList = list(),
attachmentsWithPath=TRUE,
digits = 7)
Arguments
serverName |
server name
|
port |
port
|
prot |
name of the protocol default is http
|
DBName |
name of database
|
uname |
name of the user
|
pwd |
password
|
newDBName |
name of the database for cdbMakeDB()
|
removeDBName |
name of the database to remove with cdbRemoveDB()
|
id |
the document id to get, put, post or delete
|
fileName |
for use in cdbAddAttachment
|
design |
the name of the design used when asking a view or list
|
view |
the name of the view to query
|
list |
the name of the list to query
|
queryParam |
additional query params
|
encSub |
a character which is used as a replacement for chars who can not be converted by iconv
|
count |
how many uuids should be returned by cdbGetUuidS()
|
dataList |
a list containing data to post or update
|
attachmentsWithPath |
effects the result of the function cdbAddAttachment in the way the variable is named
|
digits |
digits kept at toJSON conversion
|
Details
The list: cdb <- list(serverName = "localhost", ... ) is returned if
the packages library(RCurl) and library(RJSONIO) are
successfully loaded.
Value
cdb |
The R4CouchDB (method) chain(ing) list
|
Author(s)
wactbprot, parisni
Examples
## Not run:
ccc <- cdbIni(digits=13,
DBName="r4couch_db",
attachmentsWithPath=FALSE,
dataList=list(normalDistRand = rnorm(20)))
## End(Not run)
Results
|