1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/makeBiocFileCacheFromDataFrame.R
\name{makeBiocFileCacheFromDataFrame}
\alias{makeBiocFileCacheFromDataFrame}
\alias{makeBiocFileCacheFromDataFrame,ANY-method}
\title{Make BiocFileCache objects from an existing data.frame}
\usage{
makeBiocFileCacheFromDataFrame(
df,
cache,
actionLocal = c("move", "copy", "asis"),
actionWeb = c("move", "copy"),
metadataName,
...,
ask = TRUE
)
\S4method{makeBiocFileCacheFromDataFrame}{ANY}(
df,
cache,
actionLocal = c("move", "copy", "asis"),
actionWeb = c("move", "copy"),
metadataName,
...,
ask = TRUE
)
}
\arguments{
\item{df}{data.frame or tibble to convert}
\item{cache}{character(1) On-disk location (directory path) of
cache. For default location see
\code{\link[rappdirs]{user_cache_dir}}.}
\item{actionLocal}{If local copy of file should be moved, copied or
left in original location. See 'action' param of bfcadd.}
\item{actionWeb}{If a local copy of a remote resource already
exists, should the file be copied or moved to the
cache. Locally downloaded remote resources must exist in the
cache location.}
\item{metadataName}{If there are additional columns of data in the
original data.frame besides required BiocFileCache columns,
this data will be added as a metadata table with this name.}
\item{...}{additional arguments passed to `file.copy()`.}
\item{ask}{logical(1) Confirm creation of BiocFileCache.}
}
\value{
A BiocFileCache object
}
\description{
If there are a lot of resources being added this could take some
time but if a cache is saved in a permanent location this should
only have to be run once. The original data.frame must have the
required columns 'rtype', 'fpath', and 'rpath'; See the vignette
for more information on the expected information contained in these
columns. Similarly, the optional columns 'rname', 'etag',
'last_modified_time', and 'expires' may be included. Any additional columns
not listed as required or optional will be kept as an additional
metadata table in the BiocFileCache database.
}
|