archive_ts | R Documentation |
Archiving means renaming a file to an archive name that reflects the file creation date. The file remains attached to the same timeseries item on ScienceBase.
archive_ts(var_src, site_name, version = c("rds", "tsv"), ts_id, filename,
verbose = TRUE)
var_src |
the var_src for which to archive a file |
site_name |
the site for which to archive a file |
version |
the data storage format of the file to be archived |
ts_id |
character. the ScienceBase ID[s] containing file[s] to archive |
filename |
character. the filename[s] to archive |
verbose |
logical. give status messages? |
For efficiency, e.g., when calling archive_ts() from another function that has already located the SB item, the ts_id and filename may be supplied with other arguments omitted. If ts_id and filename are omitted, the var_src, site, and version of the file to archive should be supplied instead, and this function will locate the corresponding file[s] on ScienceBase.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.