Beatriz Milz
rstudio::conf 2022 | July 2022
Slides: beatrizmilz.github.io/rstudioconf2022
See other examples in: github.com/r-lib/actions/
Scrape data from the internet
Run reports with RMarkdown or Quarto
Send emails
Save results
on: # what triggers the workflow?
workflow_dispatch: # start when pressing a button
schedule:
- cron: "0 0 * * *" # run everyday
name: execute-r-script # name of the workflow
jobs: # what the workflow should do?
execute-r-script:
runs-on: ubuntu-latest # Run on Ubuntu
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2 # Install R
with:
use-public-rspm: true
- name: run-script
run: Rscript my_awesome_R_script.R # Run R script
on: # what triggers the workflow?
workflow_dispatch: # start when pressing a button
schedule:
- cron: "0 0 * * *" # run everyday
name: execute-r-script # name of the workflow
jobs: # what the workflow should do?
execute-r-script:
runs-on: ubuntu-latest # Run on Ubuntu
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2 # Install R
with:
use-public-rspm: true
- name: run-script
run: Rscript my_awesome_R_script.R # Run R script
on: # what triggers the workflow?
workflow_dispatch: # start when pressing a button
schedule:
- cron: "0 0 * * *" # run everyday
name: execute-r-script # name of the workflow
jobs: # what the workflow should do?
execute-r-script:
runs-on: ubuntu-latest # Run on Ubuntu
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2 # Install R
with:
use-public-rspm: true
- name: run-script
run: Rscript my_awesome_R_script.R # Run R script
RStudio - Thanks for the Diversity Scholarship!
Creators and contributors of r-lib/actions
Contact
Twitter: @BeaMilz
Blog: beamilz.com
About Bea
R-Ladies São Paulo Co-organizer
Teacher at Curso-R
Tidyverse instructor certified by RStudio
Slides by Beatriz Milz (@BeaMilz), made with Quarto.