Description Usage Arguments Details Value
View source: R/coxpresdbr_io.R
The db_archive
should be a data-frame, a .zip
, .tar
or
a .tar.bz2
.
1 2 | CoxpresDbAccessor(db_archive, temp_dir = tempdir(),
overwrite_in_bunzip2 = FALSE, remove_in_bunzip2 = FALSE)
|
db_archive |
Either a data-frame or a file path. If a
file-path, it should be a single |
temp_dir |
A directory into which a compressed CoxpresDB archive will be decompressed. By default this is the temp_dir for the current R session. Only relevant if the coxpresdb archive is compressed. |
overwrite_in_bunzip2 |
Boolean. If the CoxpresDB archive is
compressed, and a decompressed copy of the archive is found in the target
directory, should the function throw an exception? See |
remove_in_bunzip2 |
Boolean. If a compressed CoxpresDB archive
is provided, should the compressed version be deleted after decompression?
See |
If db_archive
is a .tar.bz2
then temp_dir
should be
defined and a random copy of the uncompressed archive will be made. All
access to the stored data will be made via the uncompressed copy of the
archive, so make a CoxpresDbAccessor
_once_ during any given script.
Data-frame access is the fastest approach (but works 'in memory'). Access via an archive is useful if you want to set up a reduced-size coxpresDB file for subsequent 'in-memory' use in your analysis workflow.
A CoxpresDbAccessor
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.