downloadSpataObject | R Documentation |
Downloads a spata object and returns it. For convenient
downloads of multiple spata objects check out downloadSpataObjects()
.
downloadSpataObject(
sample_name,
overwrite = FALSE,
folder = base::getwd(),
file = NULL,
in_shiny = FALSE,
verbose = TRUE,
...
)
sample_name |
Character value. The name of the sample you want to
download. Use |
overwrite |
Logical. Must be set to TRUE if file directories under which downloaded files are about to be saved already exist. |
folder |
Character value. If character, specifies the output folder in which the spata object is saved. Defaults to the working directory. |
file |
The filename of the spata object. Must end with '.RDS'. By default the file it is 'NULL' which makes the function skip the saving step. Set to character, if you want the object to be saved. |
verbose |
Logical. If set to TRUE informative messages regarding the computational progress will be printed. (Warning messages will always be printed.) |
... |
Used to absorb deprecated arguments or functions. |
The downloaded spata object is immediately saved after the download before it is returned by the function.
The downloaded spata object.
# only download
downloadSpataObject(sample_name = "275_T", folder = getwd())
# download AND assign
object <- downloadSpataObject(sample_name = "275_T", folder = getwd())
# only assign (default)
object <- downloadSpataObject(sample_name = "275_T", file = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.