Skip to content

Commit 3e84233

Browse files
committed
Merge main into rc/3.5.2
2 parents 99e9b7e + 5b0ea0b commit 3e84233

File tree

628 files changed

+21971
-10304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

628 files changed

+21971
-10304
lines changed

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

+15-14
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ on:
1010
pull_request:
1111
branches: [main, master]
1212

13-
name: R-CMD-check
13+
name: R-CMD-check.yaml
14+
15+
permissions: read-all
1416

1517
jobs:
1618
R-CMD-check:
@@ -25,17 +27,15 @@ jobs:
2527
- {os: macos-latest, r: 'release'}
2628

2729
- {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'}
30+
# use 4.0 or 4.1 to check with rtools40's older compiler
31+
- {os: windows-latest, r: 'oldrel-4'}
3232

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'}
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'}
3939

4040
env:
4141
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -48,7 +48,7 @@ jobs:
4848
VDIFFR_LOG_PATH: "../vdiffr.Rout.fail"
4949

5050
steps:
51-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
5252

5353
- uses: r-lib/actions/setup-pandoc@v2
5454

@@ -63,10 +63,11 @@ jobs:
6363
cache-version: 3
6464
extra-packages: >
6565
any::rcmdcheck,
66-
Hmisc=?ignore-before-r=4.1.0,
67-
quantreg=?ignore-before-r=3.6.0,
66+
Hmisc=?ignore-before-r=4.2.0,
67+
quantreg=?ignore-before-r=4.3.0
6868
needs: check
6969

7070
- uses: r-lib/actions/check-r-package@v2
7171
with:
7272
upload-snapshots: true
73+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/pkgdown.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
types: [published]
1010
workflow_dispatch:
1111

12-
name: pkgdown
12+
name: pkgdown.yaml
13+
14+
permissions: read-all
1315

1416
jobs:
1517
pkgdown:
@@ -19,8 +21,10 @@ jobs:
1921
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
2022
env:
2123
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
24+
permissions:
25+
contents: write
2226
steps:
23-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2428

2529
- uses: r-lib/actions/setup-pandoc@v2
2630

@@ -39,7 +43,7 @@ jobs:
3943

4044
- name: Deploy to GitHub pages 🚀
4145
if: github.event_name != 'pull_request'
42-
uses: JamesIves/github-pages-deploy-action@v4.4.1
46+
uses: JamesIves/github-pages-deploy-action@v4.5.0
4347
with:
4448
clean: false
4549
branch: gh-pages

.github/workflows/pr-commands.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
issue_comment:
55
types: [created]
66

7-
name: Commands
7+
name: pr-commands.yaml
8+
9+
permissions: read-all
810

911
jobs:
1012
document:
@@ -13,8 +15,10 @@ jobs:
1315
runs-on: ubuntu-latest
1416
env:
1517
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
18+
permissions:
19+
contents: write
1620
steps:
17-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
1822

1923
- uses: r-lib/actions/pr-fetch@v2
2024
with:
@@ -50,8 +54,10 @@ jobs:
5054
runs-on: ubuntu-latest
5155
env:
5256
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
57+
permissions:
58+
contents: write
5359
steps:
54-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
5561

5662
- uses: r-lib/actions/pr-fetch@v2
5763
with:

.github/workflows/test-coverage.yaml

+18-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
pull_request:
77
branches: [main, master]
88

9-
name: test-coverage
9+
name: test-coverage.yaml
10+
11+
permissions: read-all
1012

1113
jobs:
1214
test-coverage:
@@ -15,36 +17,45 @@ jobs:
1517
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1618

1719
steps:
18-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1921

2022
- uses: r-lib/actions/setup-r@v2
2123
with:
2224
use-public-rspm: true
2325

2426
- uses: r-lib/actions/setup-r-dependencies@v2
2527
with:
26-
extra-packages: any::covr
28+
extra-packages: any::covr, any::xml2
2729
needs: coverage
2830

2931
- name: Test coverage
3032
run: |
31-
covr::codecov(
33+
cov <- covr::package_coverage(
3234
quiet = FALSE,
3335
clean = FALSE,
34-
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
36+
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
3537
)
38+
covr::to_cobertura(cov)
3639
shell: Rscript {0}
3740

41+
- uses: codecov/codecov-action@v4
42+
with:
43+
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
44+
file: ./cobertura.xml
45+
plugin: noop
46+
disable_search: true
47+
token: ${{ secrets.CODECOV_TOKEN }}
48+
3849
- name: Show testthat output
3950
if: always()
4051
run: |
4152
## --------------------------------------------------------------------
42-
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
53+
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
4354
shell: bash
4455

4556
- name: Upload test results
4657
if: failure()
47-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
4859
with:
4960
name: coverage-test-failures
5061
path: ${{ runner.temp }}/package

CONTRIBUTING.md

+4-9
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,19 @@ Each of these steps are described in more detail below. This might feel
6161
overwhelming the first time you get set up, but it gets easier with practice.
6262
If you get stuck at any point, please reach out for help on the [ggplot2-dev](https://groups.google.com/forum/#!forum/ggplot2-dev) mailing list.
6363

64-
If you're not familiar with git or github, please start by reading <http://r-pkgs.had.co.nz/git.html>
64+
If you're not familiar with git or github, please start by reading <https://r-pkgs.org/software-development-practices.html>
6565

6666
<!--
6767
* [ ] Motivate the change in one paragraph, and include it in NEWS.
6868
In parentheses, reference your github user name and this issue:
6969
`(@hadley, #1234)`
7070
* [ ] Check pull request only includes relevant changes.
71-
* [ ] Use the [official style](http://adv-r.had.co.nz/Style.html).
71+
* [ ] Use the [official style](https://style.tidyverse.org).
7272
* [ ] Update documentation and re-run roxygen2
7373
* [ ] Add test, if bug in non-graphical function
7474
* [ ] Add visual test, if bug in graphical function
7575
* [ ] Add minimal example, if new graphical feature
7676
77-
See http://docs.ggplot2.org/dev/vignettes/development.html for more details.
7877
--->
7978

8079
Pull requests will be evaluated against a seven point checklist:
@@ -100,20 +99,16 @@ Pull requests will be evaluated against a seven point checklist:
10099
and don't submit any others until the first one has been processed.
101100

102101
1. __Use ggplot2 coding style__. Please follow the
103-
[official tidyverse style](http://style.tidyverse.org). Maintaining
102+
[official tidyverse style](https://style.tidyverse.org). Maintaining
104103
a consistent style across the whole code base makes it much easier to
105104
jump into the code. If you're modifying existing ggplot2 code that
106105
doesn't follow the style guide, a separate pull request to fix the
107106
style would be greatly appreciated.
108107

109108
1. If you're adding new parameters or a new function, you'll also need
110-
to document them with [roxygen](https://github.com/klutometis/roxygen).
109+
to document them with [roxygen2](https://github.com/r-lib/roxygen2).
111110
Make sure to re-run `devtools::document()` on the code before submitting.
112111

113-
Currently, ggplot2 uses the development version of roxygen2, which you
114-
can get with `install_github("klutometis/roxygen")`. This will be
115-
available on CRAN in the near future.
116-
117112
1. If fixing a bug or adding a new feature to a non-graphical function,
118113
please add a [testthat](https://github.com/r-lib/testthat) unit test.
119114

DESCRIPTION

+19-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ggplot2
2-
Version: 3.5.2.9000
32
Title: Create Elegant Data Visualisations Using the Grammar of Graphics
3+
Version: 3.5.2.9000
44
Authors@R: c(
55
person("Hadley", "Wickham", , "[email protected]", role = "aut",
66
comment = c(ORCID = "0000-0003-4757-117X")),
@@ -30,24 +30,21 @@ License: MIT + file LICENSE
3030
URL: https://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2
3131
BugReports: https://github.com/tidyverse/ggplot2/issues
3232
Depends:
33-
R (>= 3.5)
34-
Imports:
33+
R (>= 4.0)
34+
Imports:
3535
cli,
36-
glue,
3736
grDevices,
3837
grid,
39-
gtable (>= 0.1.1),
38+
gtable (>= 0.3.6),
4039
isoband,
4140
lifecycle (> 1.0.1),
42-
MASS,
43-
mgcv,
4441
rlang (>= 1.1.0),
4542
scales (>= 1.3.0),
4643
stats,
47-
tibble,
4844
vctrs (>= 0.6.0),
4945
withr (>= 2.5.0)
5046
Suggests:
47+
broom,
5148
covr,
5249
dplyr,
5350
ggplot2movies,
@@ -56,6 +53,8 @@ Suggests:
5653
knitr,
5754
mapproj,
5855
maps,
56+
MASS,
57+
mgcv,
5958
multcomp,
6059
munsell,
6160
nlme,
@@ -67,20 +66,22 @@ Suggests:
6766
rpart,
6867
sf (>= 0.7-3),
6968
svglite (>= 2.1.2),
70-
testthat (>= 3.1.2),
69+
testthat (>= 3.1.5),
70+
tibble,
7171
vdiffr (>= 1.0.6),
7272
xml2
73-
Enhances:
73+
Enhances:
7474
sp
75-
VignetteBuilder:
75+
VignetteBuilder:
7676
knitr
7777
Config/Needs/website: ggtext, tidyr, forcats, tidyverse/tidytemplate
7878
Config/testthat/edition: 3
79+
Config/usethis/last-upkeep: 2024-10-24
7980
Encoding: UTF-8
8081
LazyData: true
8182
Roxygen: list(markdown = TRUE)
8283
RoxygenNote: 7.3.2
83-
Collate:
84+
Collate:
8485
'ggproto.R'
8586
'ggplot-global.R'
8687
'aaa-.R'
@@ -126,15 +127,15 @@ Collate:
126127
'facet-grid-.R'
127128
'facet-null.R'
128129
'facet-wrap.R'
129-
'fortify-lm.R'
130130
'fortify-map.R'
131-
'fortify-multcomp.R'
131+
'fortify-models.R'
132132
'fortify-spatial.R'
133133
'fortify.R'
134134
'stat-.R'
135135
'geom-abline.R'
136136
'geom-rect.R'
137137
'geom-bar.R'
138+
'geom-tile.R'
138139
'geom-bin2d.R'
139140
'geom-blank.R'
140141
'geom-boxplot.R'
@@ -151,7 +152,6 @@ Collate:
151152
'geom-density2d.R'
152153
'geom-dotplot.R'
153154
'geom-errorbar.R'
154-
'geom-errorbarh.R'
155155
'geom-freqpoly.R'
156156
'geom-function.R'
157157
'geom-hex.R'
@@ -168,7 +168,6 @@ Collate:
168168
'geom-smooth.R'
169169
'geom-spoke.R'
170170
'geom-text.R'
171-
'geom-tile.R'
172171
'geom-violin.R'
173172
'geom-vline.R'
174173
'ggplot2-package.R'
@@ -243,10 +242,12 @@ Collate:
243242
'scales-.R'
244243
'stat-align.R'
245244
'stat-bin.R'
245+
'stat-summary-2d.R'
246246
'stat-bin2d.R'
247247
'stat-bindot.R'
248248
'stat-binhex.R'
249249
'stat-boxplot.R'
250+
'stat-connect.R'
250251
'stat-contour.R'
251252
'stat-count.R'
252253
'stat-density-2d.R'
@@ -255,6 +256,7 @@ Collate:
255256
'stat-ellipse.R'
256257
'stat-function.R'
257258
'stat-identity.R'
259+
'stat-manual.R'
258260
'stat-qq-line.R'
259261
'stat-qq.R'
260262
'stat-quantilemethods.R'
@@ -263,7 +265,6 @@ Collate:
263265
'stat-smooth-methods.R'
264266
'stat-smooth.R'
265267
'stat-sum.R'
266-
'stat-summary-2d.R'
267268
'stat-summary-bin.R'
268269
'stat-summary-hex.R'
269270
'stat-summary.R'
@@ -274,10 +275,10 @@ Collate:
274275
'theme.R'
275276
'theme-defaults.R'
276277
'theme-current.R'
278+
'theme-sub.R'
277279
'utilities-break.R'
278280
'utilities-grid.R'
279281
'utilities-help.R'
280-
'utilities-matrix.R'
281282
'utilities-patterns.R'
282283
'utilities-resolution.R'
283284
'utilities-tidy-eval.R'

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2020 ggplot2 authors
3+
Copyright (c) 2024 ggplot2 core developer team
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

0 commit comments

Comments
 (0)