MarkEdmondson1234 / googleCloudRunner

Easy R scripts on Google Cloud Platform via Cloud Run, Cloud Build and Cloud Scheduler
https://code.markedmondson.me/googleCloudRunner/
Other
81 stars 26 forks source link

Added option 'rscript_args' to 'cr_buildstep_r()'. This enables the u… #128

Closed simonsays1980 closed 3 years ago

simonsays1980 commented 3 years ago

…ser to add arguments to an R script run with 'Rscript' while still providing a self-build docker image.

Why is this change needed? I had to think about a solution how to provide my script arguments. As I did not found an example so far, I modified the function cr_buildstep_r() to also provide an option for Rscript arguments. That worked out for me.

What have I added? In this PR you see my extension. I also added a description in the man page and an example using Rscript arguments, StorageSource, and a large machine type. I guess that some more R users are looking for something like this and googleCloudRunner is actually providing this. Great package!

MarkEdmondson1234 commented 3 years ago

Cool! Yeah I can see the need for that.