Skip to content

Commit 88b34d0

Browse files
authored
Merge branch 'main' into pkgdown
2 parents ffafde9 + ddf555d commit 88b34d0

32 files changed

+214
-213
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ on:
88
push:
99
branches: [main, master]
1010
pull_request:
11-
branches: [main, master]
1211

13-
name: R-CMD-check
12+
name: R-CMD-check.yaml
13+
14+
permissions: read-all
1415

1516
jobs:
1617
R-CMD-check:
@@ -25,24 +26,28 @@ jobs:
2526
- {os: macos-latest, r: 'release'}
2627

2728
- {os: windows-latest, r: 'release'}
28-
# Use 3.6 to trigger usage of RTools35
29-
- {os: windows-latest, r: '3.6'}
30-
# use 4.1 to check with rtools40's older compiler
31-
- {os: windows-latest, r: '4.1'}
32-
33-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
34-
- {os: ubuntu-latest, r: 'release'}
35-
- {os: ubuntu-latest, r: 'oldrel-1'}
36-
- {os: ubuntu-latest, r: 'oldrel-2'}
37-
- {os: ubuntu-latest, r: 'oldrel-3'}
38-
- {os: ubuntu-latest, r: 'oldrel-4'}
29+
# specifying oldrel-3 instead of oldrel-4, because ragg is a problem
30+
# and that's what ragg itself is doing (???)
31+
# seems like we lose coverage of rtools40's compiler, but that also
32+
# doesn't seem like a devtools problem
33+
# https://github.com/r-lib/ragg/pull/195/commits/0ce19424eab2dad15b38b41992804e3226d86e22
34+
- {os: windows-latest, r: 'oldrel-3'}
35+
# use 4.0 or 4.1 to check with rtools40's older compiler
36+
#- {os: windows-latest, r: 'oldrel-4'}
37+
38+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
39+
- {os: ubuntu-latest, r: 'release'}
40+
- {os: ubuntu-latest, r: 'oldrel-1'}
41+
- {os: ubuntu-latest, r: 'oldrel-2'}
42+
- {os: ubuntu-latest, r: 'oldrel-3'}
43+
- {os: ubuntu-latest, r: 'oldrel-4'}
3944

4045
env:
4146
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4247
R_KEEP_PKG_SOURCE: yes
4348

4449
steps:
45-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
4651

4752
- uses: r-lib/actions/setup-pandoc@v2
4853

@@ -60,3 +65,4 @@ jobs:
6065
- uses: r-lib/actions/check-r-package@v2
6166
with:
6267
upload-snapshots: true
68+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/pkgdown.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ on:
44
push:
55
branches: [main, master]
66
pull_request:
7-
branches: [main, master]
87
release:
98
types: [published]
109
workflow_dispatch:
1110

12-
name: pkgdown
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
1314

1415
jobs:
1516
pkgdown:
@@ -22,7 +23,7 @@ jobs:
2223
permissions:
2324
contents: write
2425
steps:
25-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2627

2728
- uses: r-lib/actions/setup-pandoc@v2
2829

@@ -41,7 +42,7 @@ jobs:
4142

4243
- name: Deploy to GitHub pages 🚀
4344
if: github.event_name != 'pull_request'
44-
uses: JamesIves/github-pages-deploy-action@v4.4.1
45+
uses: JamesIves/github-pages-deploy-action@v4.5.0
4546
with:
4647
clean: false
4748
branch: gh-pages

.github/workflows/pr-commands.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66

77
name: Commands
88

9+
permissions: read-all
10+
911
jobs:
1012
document:
1113
if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/document') }}
@@ -14,7 +16,7 @@ jobs:
1416
env:
1517
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1618
steps:
17-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
1820

1921
- uses: r-lib/actions/pr-fetch@v2
2022
with:
@@ -51,7 +53,7 @@ jobs:
5153
env:
5254
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5355
steps:
54-
- uses: actions/checkout@v3
56+
- uses: actions/checkout@v4
5557

5658
- uses: r-lib/actions/pr-fetch@v2
5759
with:

.github/workflows/test-coverage.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ on:
44
push:
55
branches: [main, master]
66
pull_request:
7-
branches: [main, master]
87

9-
name: test-coverage
8+
name: test-coverage.yaml
9+
10+
permissions: read-all
1011

1112
jobs:
1213
test-coverage:
@@ -15,36 +16,47 @@ jobs:
1516
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1617

1718
steps:
18-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
1920

2021
- uses: r-lib/actions/setup-r@v2
2122
with:
2223
use-public-rspm: true
2324

2425
- uses: r-lib/actions/setup-r-dependencies@v2
2526
with:
26-
extra-packages: any::covr
27+
extra-packages: any::covr, any::xml2
2728
needs: coverage
2829

2930
- name: Test coverage
3031
run: |
31-
covr::codecov(
32+
cov <- covr::package_coverage(
3233
quiet = FALSE,
3334
clean = FALSE,
3435
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
3536
)
37+
print(cov)
38+
covr::to_cobertura(cov)
3639
shell: Rscript {0}
3740

41+
- uses: codecov/codecov-action@v5
42+
with:
43+
# Fail if error if not on PR, or if on PR and token is given
44+
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
45+
files: ./cobertura.xml
46+
plugins: noop
47+
disable_search: true
48+
token: ${{ secrets.CODECOV_TOKEN }}
49+
3850
- name: Show testthat output
3951
if: always()
4052
run: |
4153
## --------------------------------------------------------------------
42-
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
54+
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
4355
shell: bash
4456

4557
- name: Upload test results
4658
if: failure()
47-
uses: actions/upload-artifact@v3
59+
uses: actions/upload-artifact@v4
4860
with:
4961
name: coverage-test-failures
5062
path: ${{ runner.temp }}/package

DESCRIPTION

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
Package: devtools
22
Title: Tools to Make Developing R Packages Easier
3-
Version: 2.4.5.9000
3+
Version: 2.4.6.9000
44
Authors@R: c(
55
person("Hadley", "Wickham", role = "aut"),
66
person("Jim", "Hester", role = "aut"),
77
person("Winston", "Chang", role = "aut"),
88
person("Jennifer", "Bryan", , "[email protected]", role = c("aut", "cre"),
99
comment = c(ORCID = "0000-0002-6983-2759")),
10-
person("Posit Software, PBC", role = c("cph", "fnd"))
10+
person("Posit Software, PBC", role = c("cph", "fnd"),
11+
comment = c(ROR = "03wc8by49"))
1112
)
1213
Description: Collection of package development tools.
1314
License: MIT + file LICENSE
1415
URL: https://devtools.r-lib.org/, https://github.com/r-lib/devtools
1516
BugReports: https://github.com/r-lib/devtools/issues
16-
Depends:
17-
R (>= 3.6),
18-
usethis (>= 2.1.6)
19-
Imports:
20-
cli (>= 3.3.0),
21-
desc (>= 1.4.1),
17+
Depends:
18+
R (>= 4.1),
19+
usethis (>= 3.2.1)
20+
Imports:
21+
cli (>= 3.6.5),
22+
desc (>= 1.4.3),
2223
ellipsis (>= 0.3.2),
23-
fs (>= 1.5.2),
24-
lifecycle (>= 1.0.1),
24+
fs (>= 1.6.6),
25+
lifecycle (>= 1.0.4),
2526
memoise (>= 2.0.1),
26-
miniUI (>= 0.1.1.1),
27-
pkgbuild (>= 1.3.1),
28-
pkgdown (>= 2.0.6),
29-
pkgload (>= 1.3.0),
30-
profvis (>= 0.3.7),
27+
miniUI (>= 0.1.2),
28+
pkgbuild (>= 1.4.8),
29+
pkgdown (>= 2.1.3),
30+
pkgload (>= 1.4.1),
31+
profvis (>= 0.4.0),
3132
rcmdcheck (>= 1.4.0),
32-
remotes (>= 2.4.2),
33-
rlang (>= 1.0.4),
34-
roxygen2 (>= 7.2.1),
35-
rprojroot (>= 2.0.4),
36-
rversions (>= 2.1.1),
37-
sessioninfo (>= 1.2.2),
33+
remotes (>= 2.5.0),
34+
rlang (>= 1.1.6),
35+
roxygen2 (>= 7.3.3),
36+
rversions (>= 2.1.2),
37+
sessioninfo (>= 1.2.3),
3838
stats,
39-
testthat (>= 3.2.0),
39+
testthat (>= 3.2.3),
4040
tools,
4141
urlchecker (>= 1.0.1),
4242
utils,
43-
withr (>= 2.5.0)
44-
Suggests:
43+
withr (>= 3.0.2)
44+
Suggests:
4545
BiocManager (>= 1.30.18),
4646
callr (>= 3.7.1),
4747
covr (>= 3.5.1),
@@ -61,11 +61,11 @@ Suggests:
6161
rmarkdown (>= 2.14),
6262
rstudioapi (>= 0.13),
6363
spelling (>= 2.2)
64-
VignetteBuilder:
64+
VignetteBuilder:
6565
knitr
6666
Config/Needs/website: tidyverse/tidytemplate
6767
Config/testthat/edition: 3
6868
Encoding: UTF-8
6969
Language: en-US
7070
Roxygen: list(markdown = TRUE)
71-
RoxygenNote: 7.2.3
71+
RoxygenNote: 7.3.3

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2023
1+
YEAR: 2025
22
COPYRIGHT HOLDER: devtools authors

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2023 devtools authors
3+
Copyright (c) 2025 devtools authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

NEWS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22

33
* `check()` now runs `pkgdown::check_pkgdown()` optionally (@olivroy, #2449)
44

5+
# devtools 2.4.6
6+
7+
* Functions that use httr now explicitly check that it is installed
8+
(@catalamarti, #2573).
9+
510
* `test_coverage()` now works if the package has not been installed.
611

712
* `test_coverage_active_file()` now reports if any tests failed and does
813
a better job of executing snapshot comparisons.
914

15+
* `dev_mode()` and `check_rhub()` are deprecated.
16+
1017
# devtools 2.4.5
1118

1219
* `check(cleanup =)` was deprecated in devtools v1.11.0 (2016-04-12) and was
@@ -525,7 +532,7 @@ you should switch your package to depend on **usethis** directly instead.
525532
* `document()`, `load_all()`, `check()`, `build()` and `test()` now
526533
automatically save open files when they are run inside the RStudio IDE. (#1576)
527534

528-
* New `check_rhub()` function to check packages using <https://builder.r-hub.io/>.
535+
* New `check_rhub()` function to check packages using `https://builder.r-hub.io/`.
529536

530537
* `run_examples` was mistakenly passing `show` to
531538
`pkgload::run_example`, causing it to fail (@amcdavid, #1449)

R/check-mac.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ check_mac_release <- function(pkg = ".", dep_pkgs = character(), args = NULL, ma
4040

4141
url <- "https://mac.r-project.org/macbuilder/v1/submit"
4242

43+
rlang::check_installed("httr")
4344
body <- list(pkgfile = httr::upload_file(built_path))
4445

4546
if (length(dep_built_paths) > 0) {
@@ -65,7 +66,7 @@ check_mac_release <- function(pkg = ".", dep_pkgs = character(), args = NULL, ma
6566

6667
cli::cat_rule(col = "cyan")
6768
cli::cli_inform(c(
68-
i = "Check {.url {response_url}} the results in 5-10 mins (~{time})."
69+
i = "Check {.url {response_url}} for the results in 5-10 mins (~{time})."
6970
))
7071
}
7172

R/check.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#' @param pkgdown Should run [pkgdown::check_pkgdown()]?
4646
#' @param ... Additional arguments passed on to [pkgbuild::build()].
4747
#' @param vignettes If `FALSE`, do not build or check vignettes, equivalent to
48-
#' using `args = '--ignore-vignettes' and `build_args = '--no-build-vignettes'.
48+
#' using `args = '--ignore-vignettes'` and `build_args = '--no-build-vignettes'`.
4949
#' @param cleanup `r lifecycle::badge("deprecated")` See `check_dir` for details.
5050
#' @seealso [release()] if you want to send the checked package to
5151
#' CRAN.

0 commit comments

Comments
 (0)