rmhogervorst / scheduling_r_scripts Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Thanks for the link to googleCloudRunner, I have been following the other options you've been tweeting as well.
I have had scheduling R scripts as a use case for many years and how I do it has evolved over time, all on GCP that I get quite a few hits to this blog post about https://code.markedmondson.me/4-ways-schedule-r-scripts-on-google-cloud-platform/
Its also one of the use cases on googleCloudRunner https://code.markedmondson.me/googleCloudRunner/articles/usecases.html#run-r-code-on-a-schedule-1 that I use so often I made an RStudio gadget to deploy.
These days I either use the gadget above or setup a github hook that pushes to Cloud Build, that runs the script in a docker container. I think the syntax is simple and its very powerful combo. The setup for GCP is the most difficult part sorting out auth keys etc. but hopefully once thats done the code below is all you need:
https://code.markedmondson.me/googleCloudRunner/reference/cr_deploy_r.html
r_lines <- c("list.files()",
"library(dplyr)",
"mtcars %>% select(mpg)",
"sessionInfo()")
# schedule the script
cr_deploy_r(r_lines, schedule = "15 21 * * *")
Or point at an rscript in the git repo, or a local script file, or a Cloud Storage gs:// URL
Anyhow thought you would be interested if you hadn't come across it before, I could submit a pull request perhaps with some examples if you think its appropriate - I'll also be very interested in feedback on how it compares to the other methods you are documenting from a usability perspective.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.