From c23b9d9f6067acc9861825075fa283acd82bc459 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 14 Jun 2024 11:58:48 +0200 Subject: [PATCH] fix pkgdown --- .github/workflows/pkgdown.yaml | 6 ++++-- .gitignore | 5 +++-- DESCRIPTION | 18 +++++++++++++----- _pkgdown.yml | 21 ++++++++------------- 4 files changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index ed7650c..c9f0165 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -11,6 +11,8 @@ on: name: pkgdown +permissions: read-all + jobs: pkgdown: runs-on: ubuntu-latest @@ -22,7 +24,7 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 @@ -41,7 +43,7 @@ jobs: - name: Deploy to GitHub pages 🚀 if: github.event_name != 'pull_request' - uses: JamesIves/github-pages-deploy-action@v4.4.1 + uses: JamesIves/github-pages-deploy-action@v4.5.0 with: clean: false branch: gh-pages diff --git a/.gitignore b/.gitignore index f626e48..f7290ec 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ inst/doc doc Meta - -local/ \ No newline at end of file +,DS_Store +local/ +docs diff --git a/DESCRIPTION b/DESCRIPTION index d089dfb..fee29eb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,20 +2,28 @@ Package: epivis Title: Tools for visualising epidemiological data Version: 0.0.0.9000 Authors@R: - person(given = "Paul", - family = "Campbell", - role = c("aut", "cre"), - email = "paul.campbell@epicentre.msf.org", - comment = c(ORCID = "0000-0003-1018-6606")) + c(person(given = "Paul", + family = "Campbell", + role = c("aut", "cre"), + email = "paul.campbell@epicentre.msf.org", + comment = c(ORCID = "0000-0003-1018-6606")), + person(given = "Hugo", + family = "Soubrier", + role = c("aut"), + email = "hugo.soubrier@epicentre.msf.org")) Description: What the package does (one paragraph). License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) LazyData: true Imports: + cli, + rlang, ggplot2, dplyr, + purrr, tidyr, + stringr, magrittr, scales, glue, diff --git a/_pkgdown.yml b/_pkgdown.yml index df059a3..472e933 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -1,29 +1,24 @@ url: https://epicentre-msf.github.io/epivis/ - destination: docs - template: - params: - bootswatch: paper + bootstrap: 5 authors: Paul Campbell: href: https://github.com/paulc91 Hugo Soubrier: href: https://github.com/hugzsoubrier - reference: - title: Plotting functions - desc: Functions to make graphics - contents: - - starts_with("plot") - + desc: Functions to make graphics + contents: starts_with("plot") - title: Utility functions desc: Helpers to make your life easier contents: - label_breaks - - dodge_x_labels - + - dodge_x_labs - title: Themes & stylers desc: Pre-made themes for standardised tables and ggplots - contents: - - starts_with("epitheme") + contents: starts_with("epitheme") +- title: Data + desc: Example package data + contents: moissala_measles