WorkFiles | R Documentation |
These functions attempt to add or retrieve a single WorkFile
, to list
WorkFile
records, to add a set of WorkFile
s (specified via a
set of filenames or in an archive), to pass data between R objects and
WorkFile
s, or to test whether a character string represents a valid
WorkFile
identifier.
addWorkFile( filename, fileType = file_ext(sub("\\.gz$", "", filename)), compress = TRUE, group, storage, token, permissions = getOption("GeneHive.permissions"), con = hiveConnection(), verbose = getOption("GeneHive.verbose") ) getWorkFile( id, filename, con = hiveConnection(), verbose = getOption("GeneHive.verbose") ) getWorkFileAsObject( id, con = hiveConnection(), verbose = getOption("GeneHive.verbose") ) importWorkFiles( filenames, ..., permissions = getOption("GeneHive.permissions"), con = hiveConnection(), verbose = getOption("GeneHive.verbose") ) importWorkFileArchive( filename, ..., permissions = getOption("GeneHive.permissions"), con = hiveConnection(), verbose = getOption("GeneHive.verbose") ) storeObjectAsWorkFile( x, permissions = getOption("GeneHive.permissions"), con = hiveConnection(), verbose = getOption("GeneHive.verbose") ) validWorkFileId(id, con = hiveConnection())
filename |
A character string specifying the full path to a file; for
|
fileType |
A character string specifying the file type (e.g., extension) of the
|
compress |
A logical value specifying whether to gzip-compress the |
group |
A character string specifying the name of the |
storage |
A character string specifying the location in which the WorkFile is stored. |
token |
A character string specifying a token that can be used for password-free
authentication. Automatically populated when a |
permissions |
A |
con |
A |
verbose |
A logical value specifying whether messages should be printed |
id |
A |
filenames |
A character vector specifying the full path to one or more files |
... |
Additional arguments specifying |
x |
An R object to be uploaded as a |
addWorkFile
If a WorkFile
exists with the same hash as the input file, it is
assumed that they are identical; the existing record will be returned
invisibly as a linkS4class{hiveWorkFileProperties}
object, and a
warning message will be issued. If a WorkFile
does not exist with
the same MD5 hash as the input file, the file is uploaded and the
resulting WorkFile
is returned invisibly as a
linkS4class{hiveWorkFileProperties}
object.
getWorkFile
No value is returned.
importWorkFiles, importWorkFileArchive
If the operation is successful, a
hiveWorkFileIDList
object is returned invisibly;
otherwise, the function terminates with an error message.
storeObjectAsWorkFile
If the operation is successful, a
hiveWorkFileProperties
object is invisibly returned.
getWorkFileAsObject
If the operation is successful, an R object is invisibly returned: either the R object encoded in the file (if the WorkFile is an RDS file) or the contents of the WorkFile (as a raw vector).
listWorkFiles
A data frame containing one row per record and one column per field.
validWorkFileId
A logical value specifying whether the string corresponds to a WorkFile identifier.
If an error is encountered, the function terminates with a message.
Adam C. Gower agower@bu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.