item_publish_cloud: Publish file to public cloud S3 bucket

View source: R/item_upload_files.R

item_publish_cloudR Documentation

Publish file to public cloud S3 bucket

Description

moves a cloud file from the S3 bucket only available via ScienceBase authenticated services to a public S3 bucket.

Usage

item_publish_cloud(sb_id, files, ...)

Arguments

sb_id

An sbitem object or a character ScienceBase ID corresponding to the item

files

A string vector of paths to files to be uploaded

...

Additional parameters are passed on to GET, POST, HEAD, PUT.

Value

web service response invisibly.

Examples

## 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)


USGS-R/sbtools documentation built on Feb. 21, 2024, 10:15 a.m.