Exo 5 : remplacement de 'ggiraph()' dépréciée par girafe()
instead.
#80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
release: | |
types: [published] | |
workflow_dispatch: | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-latest | |
# Only restrict concurrency for non-PR jobs | |
concurrency: | |
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install av on Linux | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update -y && sudo apt-get install -y libavfilter-dev libudunits2-dev libgdal-dev libgeos-dev libproj-dev | |
sudo snap install gifski | |
- name: Install dependencies | |
run: | | |
install.packages("remotes") | |
remotes::install_deps(dependencies = TRUE) | |
install.packages("pkgdown") | |
shell: Rscript {0} | |
- name: Install police Marianne | |
run: | | |
systemfonts::register_font(name = "Marianne extrabold", system.file("resources/fonts/marianne/truetype/Marianne-ExtraBold.ttf", package = "gouvdown.fonts")) | |
systemfonts::register_font(name = "Marianne", system.file("resources/fonts/marianne/truetype/Marianne-Regular.ttf", package = "gouvdown.fonts")) | |
systemfonts::register_font(name = "Marianne light", system.file("resources/fonts/marianne/truetype/Marianne-Light.ttf", package = "gouvdown.fonts")) | |
systemfonts::register_font(name = "Marianne bold", system.file("resources/fonts/marianne/truetype/Marianne-Bold.ttf", package = "gouvdown.fonts")) | |
gouvdown::check_fonts_in_r() | |
shell: Rscript {0} | |
- name: Install package | |
run: R CMD INSTALL . | |
- name: Build site | |
run: | | |
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) | |
cat("correction du bug d'affichage dans avec gganimate, cf https://github.com/r-lib/pkgdown/issues/2334") | |
vignette_m5 <- readLines("docs/articles/m05_exercices_module_datavisualisation_R.html") | |
vignette_m5_cor <- gsub("../docs/", "../", vignette_m5) | |
writeLines(vignette_m5_cor, "docs/articles/m05_exercices_module_datavisualisation_R.html") | |
cat("Mise du rmd du chap 5 dans l'artifact pour comprendre pourquoi le resultat attendu est NULL") | |
file.copy("vignettes/m05_exercices_module_datavisualisation_R.Rmd", to = "docs/articles/vign_M5.Rmd") | |
shell: Rscript {0} | |
- name: Deploy to GitHub pages 🚀 | |
if: github.event_name != 'pull_request' | |
uses: JamesIves/[email protected] | |
with: | |
clean: true | |
branch: gh-pages | |
folder: docs |