View source: R/agnostic_write.R
Write to the cloud using custom cloud and disk interfaces.
1 2 3 4 5 6 | csmpi_custom_write(obj, key, cloud_interface, disk_interface, params,
use_disk_cache = getOption("csmpi.use_disk_cache", FALSE),
num_retries = getOption("csmpi.num_retries", 3),
overwrite_disk_cache = FALSE,
overwrite_cloud_object = getOption("csmpi.force_write", TRUE), cloud_name_,
storage_format_)
|
obj |
ANY. The object to write to the cloud. |
key |
simple string. The key to record the object with. |
cloud_interface |
CloudInterface object. The cloud interface to use. |
disk_interface |
DiskInterface object. The disk interface to use. |
params |
list. Additional arguments to pass to interface methods. |
use_disk_cache |
logical. Whether or not to cache the object on disk.
Defaults to the option |
num_retries |
numeric. How many attempts to write before raising an error.
Defaults to the option |
overwrite_disk_cache |
logical. If the object is already cached on disk, do we want to overwrite the cached copy? |
cloud_name_ |
simple_string. The name of the cloud interface, used to create unique file names for caching. If not provided, will be computed from the cloud interface using non-standard evaluation. |
storage_format_ |
simple_string. The name of the disk interface, used to create unique file names for caching. If not provided, will be computed from the disk interface using non-standard evaluation. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.