Giter Club home page Giter Club logo

scheduling_r_scripts's People

Contributors

markedmondson1234 avatar rmhogervorst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

scheduling_r_scripts's Issues

Some GCP options?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.