clonecache {cacher} | R Documentation |
Clone a remote cache or download a remote cache package
clonecache(origin, cachedir = ".cache", all.files = FALSE, id = NULL)
origin |
character, URL of remote cache |
cachedir |
character, path to local cache directory in which remote cache will be cloned |
all.files |
logical, should all database files be downloaded? |
id |
character, identifier for a cache packages stored in a remote archive |
If clonecache
is given a URL via its origin
argument,
then that cache is cloned and (by default) all of the metadata from
the remote cache is copied to the local directory indicated by
cachedir
. If all.files = TRUE
then the database files
are also downloaded.
If id
is non-NULL
, then the origin
argument is
ignored and the package corresponding to the ID is downloaded from a
remote archive (as set determined by getConfig("archive")
.
Nothing is returned; a cache directory is created and metadata are downloaded to it.