gcloud_create_cran_bucket: Create a CRAN style google bucket with appropriate ACL

View source: R/gcloud_sync.R

gcloud_create_cran_bucketR Documentation

Create a CRAN style google bucket with appropriate ACL

Description

Create a CRAN style google bucket with appropriate ACL

Usage

gcloud_create_cran_bucket(
  folder,
  bioc_version,
  secret,
  public = TRUE,
  bucket = "bioconductor-packages"
)

Arguments

bioc_version

character(1) version number for Bioconductor, defaults to 'BiocManager::version()'.

secret

character(1) path to the location of the secret key for the service account.

public

logical(1) if the bucket should be publicly accessible. Defauly is TRUE, if FALSE the bucket is made private.

bucket

character(1) bucket name for the google storage bucket.

Details

Create a CRAN style bucket used to store the package binaries built for a specific docker image. The CRAN style bucket takes is created using the following format, "bucket_name/production_version/bioc_version/src/contrib". All buckets created with this function come with Uniform Bucket-Level Access and are made public. To create a private bucket, toggle the 'public' argument to FALSE. The bucket once made public is available at the URL provided by google, 'https://storage.googleapis.com/'.

An example location for a package would be, https://storage.googleapis.com/bioconductor_docker/packages/3.11/bioc/src/contrib/ABAData_1.19.0_R_x86_64-pc-linux-gnu.tar.gz

Value

'gcloud_create_cran_bucket()' returns a character vector of the path of the workspace bucket.

Examples

## Not run: 
gcloud_create_cran_bucket(
    bucket = "bioconductor_docker",
    bioc_version = "3.11",
    secret = "/home/mysecret.json",
    public = TRUE
)

## End(Not run)


Bioconductor/BiocKubeInstall documentation built on Jan. 26, 2023, 12:35 a.m.