The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The Data Management API provides users a way to store and access data across the Forge Platform.
To create a bucket, first get a token with the
bucket:create
, bucket:read
, and
data:write
scopes.
resp <- getToken(id = Sys.getenv("client_id"), secret = Sys.getenv("client_secret"),
scope = "bucket:create bucket:read data:write")
myToken <- resp$content$access_token
Then use the makeBucket()
function to create a bucket,
where bucket
is a name for the bucket.
To check the status of a bucket:
Finally, to upload a file to the bucket, use the
uploadFile()
function, which returns an object containing
the bucketKey
, objectId
(i.e. urn),
objectKey
(i.e. file name), size
,
contentType
(i.e. “application/octet-stream”),
location
and other content information. Note the unique urn
of the file and store it in .Renviron
for future use.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.