From cfab4c593fd98b77fe1b33af672b651817896812 Mon Sep 17 00:00:00 2001 From: sda030 Date: Fri, 2 Aug 2024 22:19:15 +0200 Subject: [PATCH] Rhub + updated DESC --- .github/workflows/rhub.yaml | 95 +++++++++++++++++++++++++++++++++++++ DESCRIPTION | 12 ++--- inst/WORDLIST | 10 +--- 3 files changed, 103 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/rhub.yaml diff --git a/.github/workflows/rhub.yaml b/.github/workflows/rhub.yaml new file mode 100644 index 0000000..74ec7b0 --- /dev/null +++ b/.github/workflows/rhub.yaml @@ -0,0 +1,95 @@ +# R-hub's generic GitHub Actions workflow file. It's canonical location is at +# https://github.com/r-hub/actions/blob/v1/workflows/rhub.yaml +# You can update this file to a newer version using the rhub2 package: +# +# rhub::rhub_setup() +# +# It is unlikely that you need to modify this file manually. + +name: R-hub +run-name: "${{ github.event.inputs.id }}: ${{ github.event.inputs.name || format('Manually run by {0}', github.triggering_actor) }}" + +on: + workflow_dispatch: + inputs: + config: + description: 'A comma separated list of R-hub platforms to use.' + type: string + default: 'linux,windows,macos' + name: + description: 'Run name. You can leave this empty now.' + type: string + id: + description: 'Unique ID. You can leave this empty now.' + type: string + +jobs: + + setup: + runs-on: ubuntu-latest + outputs: + containers: ${{ steps.rhub-setup.outputs.containers }} + platforms: ${{ steps.rhub-setup.outputs.platforms }} + + steps: + # NO NEED TO CHECKOUT HERE + - uses: r-hub/actions/setup@v1 + with: + config: ${{ github.event.inputs.config }} + id: rhub-setup + + linux-containers: + needs: setup + if: ${{ needs.setup.outputs.containers != '[]' }} + runs-on: ubuntu-latest + name: ${{ matrix.config.label }} + strategy: + fail-fast: false + matrix: + config: ${{ fromJson(needs.setup.outputs.containers) }} + container: + image: ${{ matrix.config.container }} + + steps: + - uses: r-hub/actions/checkout@v1 + - uses: r-hub/actions/platform-info@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + - uses: r-hub/actions/setup-deps@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + - uses: r-hub/actions/run-check@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + + other-platforms: + needs: setup + if: ${{ needs.setup.outputs.platforms != '[]' }} + runs-on: ${{ matrix.config.os }} + name: ${{ matrix.config.label }} + strategy: + fail-fast: false + matrix: + config: ${{ fromJson(needs.setup.outputs.platforms) }} + + steps: + - uses: r-hub/actions/checkout@v1 + - uses: r-hub/actions/setup-r@v1 + with: + job-config: ${{ matrix.config.job-config }} + token: ${{ secrets.RHUB_TOKEN }} + - uses: r-hub/actions/platform-info@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + - uses: r-hub/actions/setup-deps@v1 + with: + job-config: ${{ matrix.config.job-config }} + token: ${{ secrets.RHUB_TOKEN }} + - uses: r-hub/actions/run-check@v1 + with: + job-config: ${{ matrix.config.job-config }} + token: ${{ secrets.RHUB_TOKEN }} diff --git a/DESCRIPTION b/DESCRIPTION index 101f9ec..08034ce 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Type: Package Package: saros.base -Title: Base Package for Semi-Automatic Reporting of Ordinary Surveys (saros) +Title: Base Tools in Semi-Automatic Reporting of Ordinary Surveys (Saros) Version: 0.1.1 Authors@R: c( person(given = "Stephan", @@ -14,11 +14,11 @@ Authors@R: c( role = c("fnd")) ) Maintainer: Stephan Daus -Description: Produces highly customized reports, primarily intended for survey - research. Building on 'Quarto' (), it generates draft - chapters of all specified dependent/independent variables, which can be - further edited by hand, with the chunk templates specified. Component of the - saros. +Description: Component of the saros package project. Generate an entire report + scaffold with templated chunks, based on a small chapter overview and a dataset. + Highly customizable with insertable prefixes, suffixes, translations, etc. + See 'saros' () for the main + umbrella package. Note: Free to use for non-Norwegian institutions, otherwise see LICENSE. License: MIT + file LICENSE URL: https://nifu-no.github.io/saros.base/, https://github.com/NIFU-NO/saros.base diff --git a/inst/WORDLIST b/inst/WORDLIST index b4c0023..7afd2fc 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -3,7 +3,6 @@ CMD Codecov Lifecycle Mockup -NIFU OneDrive QMD RStudio @@ -12,24 +11,19 @@ Saros Sharepoint SurveyXact YAML -barchart chr customizable datetime -delim dep filepath -ggplot indep -maintainer's -mesos +insertable pre qmd rowwise saros -sarosverse sig srvyr +templated tibble -unicode yaml