Max Held
http://www.maxheld.de
@maxheld83
@maxheld
remotes::install_github(“r-lib/ghactions”)
ghactions::use_ghactions(
workflow = ghactions::website()
)
git add .
git commit -m "update project"
git push
![]()
Dockerfile
FROM rhub/debian-gcc-release
...ENTRYPOINT ["/entrypoint.R"]
docker build \
--tag install-deps .
docker run \
--entrypoint R install-deps
.travis.yml
language:r
cache: packages
...deploy:
provider: script
script: Rscript -e \
'pkgdown::deploy_site_github(verbose = TRUE)'
action "Deploy to shinyapps.io" {
uses = "maxheld83/shinyapps@master"
secrets = ["SHINYAPPS_SECRET", SHINYAPPS_TOKEN"]
}
docker run --env "SHINYAPPS_SECRET=foo" \
--volume ${PWD}:${HOME} maxheld83/shinyapps:master
workflow "Deploy Shiny App" {
on = "push"
resolves = ["Deploy to shinyapps.io"]
}
action "Install Dependencies" {
uses = "r-lib/ghactions/install-deps"
}
action "Deploy to shinyapps.io"{
uses = "maxheld83/shinyapps@master"
needs = ["Install Dependencies"]
}
R_LIBS=''
git push
ls .
index.Rmd
app.R
actions/rmarkdown
R_LIBS=/lib/R/library
render_site()
ls /github/workspace/
index.Rmd
app.R
_site/
actions/shinyapps
R_LIBS=/lib/R/library
deploy_app()
ls /github/workspace/
index.Rmd
app.R
_site/
R CMD build
R CMD check
covr::codecov()
roxygen2::roxygenize()
remotes::install_deps()
pkgdown::build_site()
rsconnect::deploy_app()
rmarkdown::render_*()
Rscript
bring-your-own-docker
RStudio Inc.
Gábor CsárdiThe R-Hub Project / R Consortium
Dirk Eddelbuettel & Carl BoettigerThe Rocker Project
remotes::install_github(“r-lib/ghactions”)