View source: R/publish_resource.R
publish_resource | R Documentation |
This function uses functionality from the aws.s3 package to put files or directories on the Bioconductor's test hub S3 bucket. The user should have already contacted the hubs maintainers at hubs@bioconductor.org to get the necessary credentials to access the bucket. These credentials should be delcared in the system environment prior to running this function.
publish_resource(path, object, dry.run = TRUE)
path |
A |
object |
A |
dry.run |
A boolean to indicate if the resource should in fact be published. The defalut is TRUE, meaning the resource won't be published. |
None
pkgdir <- tempfile()
fl1 <- file.path(pkgdir, "mtcars1.csv")
dir.create(dirname(fl1), recursive = TRUE)
write.csv(mtcars, file = file.path(fl1))
fl2 <- file.path(pkgdir, "mtcars2.csv")
write.csv(mtcars, file = file.path(fl2))
publish_resource(pkgdir, "test_dir")
fl3 <- file.path(pkgdir, "mtcars3.csv")
write.csv(mtcars, file = file.path(fl3))
publish_resource(fl3, "test_dir")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.