Add artifact objects to a build

cr_build_yaml_artifact(paths, bucket_dir = NULL, bucket = cr_bucket_get())

Arguments

paths

Which files from the working directory to upload to cloud storage once the build is finished. Can use globs but see details of cr_build_artifacts on how that affects downloads

bucket_dir

The directory in the bucket the files will be uploaded to

bucket

the bucket to send to

See also

Examples

if (FALSE) { cr_project_set("my-project") r <- "write.csv(mtcars,file = 'artifact.csv')" cr_build_yaml( steps = cr_buildstep_r(r), artifacts = cr_build_yaml_artifact('artifact.csv', bucket = "my-bucket") ) }