From 00a67c758f9144802fd1b3e8486f134dbbc1ebf5 Mon Sep 17 00:00:00 2001 From: Roberto Villegas-Diaz Date: Fri, 21 Jun 2024 15:01:58 +0100 Subject: [PATCH 1/3] New patch, remove suggested libraries only use to ensure the styling of the code (i.e., these don't affect the functionality of the package). --- DESCRIPTION | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7c4f6e5..5ac8c29 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: fxTWAPLS Title: An Improved Version of WA-PLS -Version: 0.1.2 +Version: 0.1.3 Authors@R: c( person(given = "Mengmeng", family = "Liu", @@ -52,15 +52,12 @@ Imports: parallel, progressr Suggests: - lintr (>= 3.0.0), magrittr, progress, scales, - spelling, - styler, tictoc Depends: R (>= 3.6) Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.2 +RoxygenNote: 7.3.1 Language: en-GB From 87decdb9ee3f568ed2897e5a69511a6a10751361 Mon Sep 17 00:00:00 2001 From: Roberto Villegas-Diaz Date: Fri, 21 Jun 2024 15:02:05 +0100 Subject: [PATCH 2/3] New build --- man/pb.Rd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man/pb.Rd b/man/pb.Rd index 194f636..8fcc4d5 100644 --- a/man/pb.Rd +++ b/man/pb.Rd @@ -25,7 +25,9 @@ standard output is relayed.} If TRUE and a interrupt is signaled, progress handlers are asked to report on the current amount progress when the evaluation was terminated by the interrupt, e.g. when a user pressed Ctrl-C in an interactive session, -or a batch process was interrupted because it ran out of time.} +or a batch process was interrupted because it ran out of time. +Note that it's optional for a progress handler to support this and only +some do.} \item{\code{interval}}{(numeric) The minimum time (in seconds) between successive progression updates from handlers.} \item{\code{enable}}{(logical) If FALSE, then progress is not reported. The From 3ca10207a39735a1d203fb195bf898965ba29656 Mon Sep 17 00:00:00 2001 From: Roberto Villegas-Diaz Date: Fri, 21 Jun 2024 15:07:55 +0100 Subject: [PATCH 3/3] Add R-hub GHA workflow file --- .github/workflows/rhub.yaml | 95 +++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) 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 }}