powered by
Helper to run a supplied bash script, that will be copied in-line
cr_buildstep_bash( bash_script, name = "ubuntu", bash_source = c("local", "runtime"), ... )
bash code to run or a filepath to a file containing bash code that ends with .bash or .sh
The image that will run the R code
Whether the code will be from a runtime file within the source or at build time copying over from a local file in your session
Other arguments passed to cr_buildstep
If you need to escape build parameters in bash scripts, you need to escape CloudBuild's substitution via $$ and bash's substitution via \$ e.g. \$$PARAM
$$
\$
\$$PARAM
Other Cloud Buildsteps: cr_buildstep_decrypt(), cr_buildstep_df(), cr_buildstep_docker(), cr_buildstep_edit(), cr_buildstep_extract(), cr_buildstep_gitsetup(), cr_buildstep_mailgun(), cr_buildstep_nginx_setup(), cr_buildstep_pkgdown(), cr_buildstep_run(), cr_buildstep_r(), cr_buildstep_secret(), cr_buildstep_slack(), cr_buildstep()
cr_buildstep_decrypt()
cr_buildstep_df()
cr_buildstep_docker()
cr_buildstep_edit()
cr_buildstep_extract()
cr_buildstep_gitsetup()
cr_buildstep_mailgun()
cr_buildstep_nginx_setup()
cr_buildstep_pkgdown()
cr_buildstep_run()
cr_buildstep_r()
cr_buildstep_secret()
cr_buildstep_slack()
cr_buildstep()
# NOT RUN { cr_project_set("my-project") bs <- cr_build_yaml( steps = cr_buildstep_bash("echo 'Hello'") ) # } # NOT RUN { cr_build(bs) # }
Run the code above in your browser using DataLab