Learn R Programming

stashR (version 0.3-5)

utils: Set directory for remote database

Description

Utilities for "localDB" and "remoteDB" databases

Usage

setDir(db) <- value copyDB(db, ...) reposVersion(db, ...) reposVersion(db) <- value
"initialize"(.Object, ...) "initialize"(.Object, ...)
"copyDB"(db, dir, ...)

Arguments

db
an object of class "remoteDB" or "localDB"
value
character, directory to be assigned
.Object
an object of class "localDB" or "remoteDB"
dir
directory into which the "localDB" should be copied
...
other arguments passed to methods

Details

Users obtaining "remoteDB" objects created on different machines may want to reset the directory specified for the local cache. The setDir replacement function is to be used for that purpose.

Users generally will not call the initialize functions directly, but rather will call them indirectly via the new function.

copyDB is used to copy a "localDB" database to another location (i.e. directory).

reposVersion returns the current repository version number and the replacement method can be used to set the repository to a different version number. A repository version of -1 indicates the most recent version.