Skip to content

Commit 1f4fd1d

Browse files
committed
New github action
1 parent 81d86fa commit 1f4fd1d

3 files changed

Lines changed: 140 additions & 109 deletions

File tree

‎.github/workflows/rhub.yaml‎

Lines changed: 35 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,51 @@
1-
# R-hub's generic GitHub Actions workflow file. It's canonical location is at
2-
# https://github.com/r-hub/actions/blob/v1/workflows/rhub.yaml
3-
# You can update this file to a newer version using the rhub2 package:
4-
#
5-
# rhub::rhub_setup()
6-
#
7-
# It is unlikely that you need to modify this file manually.
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
87

9-
name: R-hub
10-
run-name: "${{ github.event.inputs.id }}: ${{ github.event.inputs.name || format('Manually run by {0}', github.triggering_actor) }}"
8+
name: R-CMD-check.yaml
119

12-
on:
13-
workflow_dispatch:
14-
inputs:
15-
config:
16-
description: 'A comma separated list of R-hub platforms to use.'
17-
type: string
18-
default: 'linux,windows,macos'
19-
name:
20-
description: 'Run name. You can leave this empty now.'
21-
type: string
22-
id:
23-
description: 'Unique ID. You can leave this empty now.'
24-
type: string
10+
permissions: read-all
2511

2612
jobs:
13+
R-CMD-check:
14+
runs-on: ${{ matrix.config.os }}
2715

28-
setup:
29-
runs-on: ubuntu-latest
30-
outputs:
31-
containers: ${{ steps.rhub-setup.outputs.containers }}
32-
platforms: ${{ steps.rhub-setup.outputs.platforms }}
33-
34-
steps:
35-
# NO NEED TO CHECKOUT HERE
36-
- uses: r-hub/actions/setup@v1
37-
with:
38-
config: ${{ github.event.inputs.config }}
39-
id: rhub-setup
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
4017

41-
linux-containers:
42-
needs: setup
43-
if: ${{ needs.setup.outputs.containers != '[]' }}
44-
runs-on: ubuntu-latest
45-
name: ${{ matrix.config.label }}
4618
strategy:
4719
fail-fast: false
4820
matrix:
49-
config: ${{ fromJson(needs.setup.outputs.containers) }}
50-
container:
51-
image: ${{ matrix.config.container }}
21+
config:
22+
- {os: ubuntu-latest, r: 'release'}
23+
# - {os: macos-latest, r: 'release'}
24+
# - {os: windows-latest, r: 'release'}
25+
# - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
26+
# - {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+
env:
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
R_KEEP_PKG_SOURCE: yes
5231

5332
steps:
54-
- uses: r-hub/actions/checkout@v1
55-
- uses: r-hub/actions/platform-info@v1
56-
with:
57-
token: ${{ secrets.RHUB_TOKEN }}
58-
job-config: ${{ matrix.config.job-config }}
59-
- uses: r-hub/actions/setup-deps@v1
60-
with:
61-
token: ${{ secrets.RHUB_TOKEN }}
62-
job-config: ${{ matrix.config.job-config }}
63-
- uses: r-hub/actions/run-check@v1
64-
with:
65-
token: ${{ secrets.RHUB_TOKEN }}
66-
job-config: ${{ matrix.config.job-config }}
33+
- uses: actions/checkout@v4
6734

68-
other-platforms:
69-
needs: setup
70-
if: ${{ needs.setup.outputs.platforms != '[]' }}
71-
runs-on: ${{ matrix.config.os }}
72-
name: ${{ matrix.config.label }}
73-
strategy:
74-
fail-fast: false
75-
matrix:
76-
config: ${{ fromJson(needs.setup.outputs.platforms) }}
35+
- uses: r-lib/actions/setup-pandoc@v2
7736

78-
steps:
79-
- uses: r-hub/actions/checkout@v1
80-
- uses: r-hub/actions/setup-r@v1
81-
with:
82-
job-config: ${{ matrix.config.job-config }}
83-
token: ${{ secrets.RHUB_TOKEN }}
84-
- uses: r-hub/actions/platform-info@v1
37+
- uses: r-lib/actions/setup-r@v2
8538
with:
86-
token: ${{ secrets.RHUB_TOKEN }}
87-
job-config: ${{ matrix.config.job-config }}
88-
- uses: r-hub/actions/setup-deps@v1
39+
r-version: ${{ matrix.config.r }}
40+
http-user-agent: ${{ matrix.config.http-user-agent }}
41+
use-public-rspm: true
42+
43+
- uses: r-lib/actions/setup-r-dependencies@v2
8944
with:
90-
job-config: ${{ matrix.config.job-config }}
91-
token: ${{ secrets.RHUB_TOKEN }}
92-
- uses: r-hub/actions/run-check@v1
45+
extra-packages: any::rcmdcheck
46+
needs: check
47+
48+
- uses: r-lib/actions/check-r-package@v2
9349
with:
94-
job-config: ${{ matrix.config.job-config }}
95-
token: ${{ secrets.RHUB_TOKEN }}
50+
upload-snapshots: true
51+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

‎renv.lock‎

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,15 @@
9999
},
100100
"Rcpp": {
101101
"Package": "Rcpp",
102-
"Version": "1.1.0",
102+
"Version": "1.1.1",
103103
"Source": "Repository",
104104
"Title": "Seamless R and C++ Integration",
105-
"Date": "2025-07-01",
105+
"Date": "2026-01-07",
106106
"Authors@R": "c(person(\"Dirk\", \"Eddelbuettel\", role = c(\"aut\", \"cre\"), email = \"edd@debian.org\", comment = c(ORCID = \"0000-0001-6419-907X\")), person(\"Romain\", \"Francois\", role = \"aut\", comment = c(ORCID = \"0000-0002-2444-4226\")), person(\"JJ\", \"Allaire\", role = \"aut\", comment = c(ORCID = \"0000-0003-0174-9868\")), person(\"Kevin\", \"Ushey\", role = \"aut\", comment = c(ORCID = \"0000-0003-2880-7407\")), person(\"Qiang\", \"Kou\", role = \"aut\", comment = c(ORCID = \"0000-0001-6786-5453\")), person(\"Nathan\", \"Russell\", role = \"aut\"), person(\"Iñaki\", \"Ucar\", role = \"aut\", comment = c(ORCID = \"0000-0001-6403-5550\")), person(\"Doug\", \"Bates\", role = \"aut\", comment = c(ORCID = \"0000-0001-8316-9503\")), person(\"John\", \"Chambers\", role = \"aut\"))",
107107
"Description": "The 'Rcpp' package provides R functions as well as C++ classes which offer a seamless integration of R and C++. Many R data types and objects can be mapped back and forth to C++ equivalents which facilitates both writing of new code as well as easier integration of third-party libraries. Documentation about 'Rcpp' is provided by several vignettes included in this package, via the 'Rcpp Gallery' site at <https://gallery.rcpp.org>, the paper by Eddelbuettel and Francois (2011, <doi:10.18637/jss.v040.i08>), the book by Eddelbuettel (2013, <doi:10.1007/978-1-4614-6868-4>) and the paper by Eddelbuettel and Balamuta (2018, <doi:10.1080/00031305.2017.1375990>); see 'citation(\"Rcpp\")' for details.",
108+
"Depends": [
109+
"R (>= 3.5.0)"
110+
],
108111
"Imports": [
109112
"methods",
110113
"utils"
@@ -121,6 +124,7 @@
121124
"MailingList": "rcpp-devel@lists.r-forge.r-project.org",
122125
"RoxygenNote": "6.1.1",
123126
"Encoding": "UTF-8",
127+
"VignetteBuilder": "Rcpp",
124128
"NeedsCompilation": "yes",
125129
"Author": "Dirk Eddelbuettel [aut, cre] (ORCID: <https://orcid.org/0000-0001-6419-907X>), Romain Francois [aut] (ORCID: <https://orcid.org/0000-0002-2444-4226>), JJ Allaire [aut] (ORCID: <https://orcid.org/0000-0003-0174-9868>), Kevin Ushey [aut] (ORCID: <https://orcid.org/0000-0003-2880-7407>), Qiang Kou [aut] (ORCID: <https://orcid.org/0000-0001-6786-5453>), Nathan Russell [aut], Iñaki Ucar [aut] (ORCID: <https://orcid.org/0000-0001-6403-5550>), Doug Bates [aut] (ORCID: <https://orcid.org/0000-0001-8316-9503>), John Chambers [aut]",
126130
"Maintainer": "Dirk Eddelbuettel <edd@debian.org>",
@@ -354,7 +358,7 @@
354358
},
355359
"cpp11": {
356360
"Package": "cpp11",
357-
"Version": "0.5.2",
361+
"Version": "0.5.3",
358362
"Source": "Repository",
359363
"Title": "A C++11 Interface for R's C Interface",
360364
"Authors@R": "c( person(\"Davis\", \"Vaughan\", email = \"davis@posit.co\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-4777-038X\")), person(\"Jim\",\"Hester\", role = \"aut\", comment = c(ORCID = \"0000-0002-2739-7082\")), person(\"Romain\", \"François\", role = \"aut\", comment = c(ORCID = \"0000-0002-2444-4226\")), person(\"Benjamin\", \"Kietzman\", role = \"ctb\"), person(\"Posit Software, PBC\", role = c(\"cph\", \"fnd\")) )",
@@ -395,7 +399,7 @@
395399
"Encoding": "UTF-8",
396400
"RoxygenNote": "7.3.2",
397401
"NeedsCompilation": "no",
398-
"Author": "Davis Vaughan [aut, cre] (<https://orcid.org/0000-0003-4777-038X>), Jim Hester [aut] (<https://orcid.org/0000-0002-2739-7082>), Romain François [aut] (<https://orcid.org/0000-0002-2444-4226>), Benjamin Kietzman [ctb], Posit Software, PBC [cph, fnd]",
402+
"Author": "Davis Vaughan [aut, cre] (ORCID: <https://orcid.org/0000-0003-4777-038X>), Jim Hester [aut] (ORCID: <https://orcid.org/0000-0002-2739-7082>), Romain François [aut] (ORCID: <https://orcid.org/0000-0002-2444-4226>), Benjamin Kietzman [ctb], Posit Software, PBC [cph, fnd]",
399403
"Maintainer": "Davis Vaughan <davis@posit.co>",
400404
"Repository": "CRAN"
401405
},
@@ -811,7 +815,7 @@
811815
},
812816
"lifecycle": {
813817
"Package": "lifecycle",
814-
"Version": "1.0.4",
818+
"Version": "1.0.5",
815819
"Source": "Repository",
816820
"Title": "Manage the Life Cycle of your Package Functions",
817821
"Authors@R": "c( person(\"Lionel\", \"Henry\", , \"lionel@posit.co\", role = c(\"aut\", \"cre\")), person(\"Hadley\", \"Wickham\", , \"hadley@posit.co\", role = \"aut\", comment = c(ORCID = \"0000-0003-4757-117X\")), person(\"Posit Software, PBC\", role = c(\"cph\", \"fnd\")) )",
@@ -824,29 +828,28 @@
824828
],
825829
"Imports": [
826830
"cli (>= 3.4.0)",
827-
"glue",
828831
"rlang (>= 1.1.0)"
829832
],
830833
"Suggests": [
831834
"covr",
832-
"crayon",
833835
"knitr",
834-
"lintr",
836+
"lintr (>= 3.1.0)",
835837
"rmarkdown",
836838
"testthat (>= 3.0.1)",
837839
"tibble",
838840
"tidyverse",
839841
"tools",
840842
"vctrs",
841-
"withr"
843+
"withr",
844+
"xml2"
842845
],
843846
"VignetteBuilder": "knitr",
844847
"Config/Needs/website": "tidyverse/tidytemplate, usethis",
845848
"Config/testthat/edition": "3",
846849
"Encoding": "UTF-8",
847-
"RoxygenNote": "7.2.1",
850+
"RoxygenNote": "7.3.3",
848851
"NeedsCompilation": "no",
849-
"Author": "Lionel Henry [aut, cre], Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), Posit Software, PBC [cph, fnd]",
852+
"Author": "Lionel Henry [aut, cre], Hadley Wickham [aut] (ORCID: <https://orcid.org/0000-0003-4757-117X>), Posit Software, PBC [cph, fnd]",
850853
"Maintainer": "Lionel Henry <lionel@posit.co>",
851854
"Repository": "CRAN"
852855
},
@@ -975,7 +978,7 @@
975978
},
976979
"renv": {
977980
"Package": "renv",
978-
"Version": "1.1.5",
981+
"Version": "1.1.6",
979982
"Source": "Repository",
980983
"Type": "Package",
981984
"Title": "Project Environments",
@@ -993,6 +996,7 @@
993996
"compiler",
994997
"covr",
995998
"cpp11",
999+
"curl",
9961000
"devtools",
9971001
"generics",
9981002
"gitcreds",
@@ -1016,7 +1020,7 @@
10161020
"webfakes"
10171021
],
10181022
"Encoding": "UTF-8",
1019-
"RoxygenNote": "7.3.2",
1023+
"RoxygenNote": "7.3.3",
10201024
"VignetteBuilder": "knitr",
10211025
"Config/Needs/website": "tidyverse/tidytemplate",
10221026
"Config/testthat/edition": "3",
@@ -1064,7 +1068,7 @@
10641068
},
10651069
"rlang": {
10661070
"Package": "rlang",
1067-
"Version": "1.1.6",
1071+
"Version": "1.1.7",
10681072
"Source": "Repository",
10691073
"Title": "Functions for Base Types and Core R and 'Tidyverse' Features",
10701074
"Description": "A toolbox for working with base types, core R features like the condition system, and core 'Tidyverse' features like tidy evaluation.",
@@ -1073,7 +1077,7 @@
10731077
"ByteCompile": "true",
10741078
"Biarch": "true",
10751079
"Depends": [
1076-
"R (>= 3.5.0)"
1080+
"R (>= 4.0.0)"
10771081
],
10781082
"Imports": [
10791083
"utils"
@@ -1102,7 +1106,7 @@
11021106
"winch"
11031107
],
11041108
"Encoding": "UTF-8",
1105-
"RoxygenNote": "7.3.2",
1109+
"RoxygenNote": "7.3.3",
11061110
"URL": "https://rlang.r-lib.org, https://github.com/r-lib/rlang",
11071111
"BugReports": "https://github.com/r-lib/rlang/issues",
11081112
"Config/build/compilation-database": "true",
@@ -1284,7 +1288,7 @@
12841288
},
12851289
"vctrs": {
12861290
"Package": "vctrs",
1287-
"Version": "0.6.5",
1291+
"Version": "0.7.1",
12881292
"Source": "Repository",
12891293
"Title": "Vector Helpers",
12901294
"Authors@R": "c( person(\"Hadley\", \"Wickham\", , \"hadley@posit.co\", role = \"aut\"), person(\"Lionel\", \"Henry\", , \"lionel@posit.co\", role = \"aut\"), person(\"Davis\", \"Vaughan\", , \"davis@posit.co\", role = c(\"aut\", \"cre\")), person(\"data.table team\", role = \"cph\", comment = \"Radix sort based on data.table's forder() and their contribution to R's order()\"), person(\"Posit Software, PBC\", role = c(\"cph\", \"fnd\")) )",
@@ -1293,13 +1297,13 @@
12931297
"URL": "https://vctrs.r-lib.org/, https://github.com/r-lib/vctrs",
12941298
"BugReports": "https://github.com/r-lib/vctrs/issues",
12951299
"Depends": [
1296-
"R (>= 3.5.0)"
1300+
"R (>= 4.0.0)"
12971301
],
12981302
"Imports": [
12991303
"cli (>= 3.4.0)",
13001304
"glue",
13011305
"lifecycle (>= 1.0.3)",
1302-
"rlang (>= 1.1.0)"
1306+
"rlang (>= 1.1.7)"
13031307
],
13041308
"Suggests": [
13051309
"bit64",
@@ -1319,11 +1323,13 @@
13191323
"zeallot"
13201324
],
13211325
"VignetteBuilder": "knitr",
1326+
"Config/build/compilation-database": "true",
13221327
"Config/Needs/website": "tidyverse/tidytemplate",
13231328
"Config/testthat/edition": "3",
1329+
"Config/testthat/parallel": "true",
13241330
"Encoding": "UTF-8",
13251331
"Language": "en-GB",
1326-
"RoxygenNote": "7.2.3",
1332+
"RoxygenNote": "7.3.3",
13271333
"NeedsCompilation": "yes",
13281334
"Author": "Hadley Wickham [aut], Lionel Henry [aut], Davis Vaughan [aut, cre], data.table team [cph] (Radix sort based on data.table's forder() and their contribution to R's order()), Posit Software, PBC [cph, fnd]",
13291335
"Maintainer": "Davis Vaughan <davis@posit.co>",

0 commit comments

Comments
 (0)