View source: R/item_upload_files.R
item_publish_cloud | R Documentation |
moves a cloud file from the S3 bucket only available via ScienceBase authenticated services to a public S3 bucket.
item_publish_cloud(sb_id, files, ...)
sb_id |
An |
files |
A string vector of paths to files to be uploaded |
... |
Additional parameters are passed on to |
web service response invisibly.
## Not run:
res <- item_create(user_id(), "testing 123")
cat("foo bar", file = "foobar.txt")
item_upload_cloud(res$id, "foobar.txt")
item_publish_cloud(res$id, "foobar.txt")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.