Upkeep 2023 (#5221)

This commit is contained in:
Thomas Lin Pedersen 2023-03-07 14:23:55 +01:00 committed by GitHub
parent 5d78b45da4
commit 04a5ef274e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
368 changed files with 423 additions and 404 deletions

View File

@ -59,7 +59,7 @@ representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at codeofconduct@rstudio.com.
reported to the community leaders responsible for enforcement at codeofconduct@posit.co.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the

View File

@ -22,13 +22,14 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
# Use 3.6 to trigger usage of RTools35
- {os: windows-latest, r: '3.6'}
# use 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: '4.1'}
# Use latest ubuntu to make it easier to install sf dependencies
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
@ -47,7 +48,7 @@ jobs:
VDIFFR_LOG_PATH: "../vdiffr.Rout.fail"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2

View File

@ -20,7 +20,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
@ -39,7 +39,7 @@ jobs:
- name: Deploy to GitHub pages ๐Ÿš€
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages

View File

@ -14,7 +14,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: r-lib/actions/pr-fetch@v2
with:
@ -51,7 +51,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: r-lib/actions/pr-fetch@v2
with:

View File

@ -15,7 +15,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
@ -27,5 +27,24 @@ jobs:
needs: coverage
- name: Test coverage
run: covr::codecov(quiet = FALSE)
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}
- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package

View File

@ -18,7 +18,7 @@ Authors@R: c(
comment = c(ORCID = "0000-0002-3385-7233")),
person("Dewey", "Dunnington", role = "aut",
comment = c(ORCID = "0000-0002-9415-4582")),
person("RStudio", role = c("cph", "fnd"))
person("Posit, PBC", role = c("cph", "fnd"))
)
Description: A system for 'declaratively' creating graphics, based on "The
Grammar of Graphics". You provide the data, tell 'ggplot2' how to map
@ -82,194 +82,194 @@ LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Collate:
'ggproto.r'
'ggproto.R'
'ggplot-global.R'
'aaa-.r'
'aes-colour-fill-alpha.r'
'aes-evaluation.r'
'aes-group-order.r'
'aes-linetype-size-shape.r'
'aes-position.r'
'aaa-.R'
'aes-colour-fill-alpha.R'
'aes-evaluation.R'
'aes-group-order.R'
'aes-linetype-size-shape.R'
'aes-position.R'
'compat-plyr.R'
'utilities.r'
'aes.r'
'legend-draw.r'
'geom-.r'
'annotation-custom.r'
'annotation-logticks.r'
'geom-polygon.r'
'geom-map.r'
'annotation-map.r'
'geom-raster.r'
'annotation-raster.r'
'annotation.r'
'autolayer.r'
'autoplot.r'
'utilities.R'
'aes.R'
'legend-draw.R'
'geom-.R'
'annotation-custom.R'
'annotation-logticks.R'
'geom-polygon.R'
'geom-map.R'
'annotation-map.R'
'geom-raster.R'
'annotation-raster.R'
'annotation.R'
'autolayer.R'
'autoplot.R'
'axis-secondary.R'
'backports.R'
'bench.r'
'bench.R'
'bin.R'
'coord-.r'
'coord-cartesian-.r'
'coord-fixed.r'
'coord-flip.r'
'coord-map.r'
'coord-munch.r'
'coord-polar.r'
'coord-.R'
'coord-cartesian-.R'
'coord-fixed.R'
'coord-flip.R'
'coord-map.R'
'coord-munch.R'
'coord-polar.R'
'coord-quickmap.R'
'coord-sf.R'
'coord-transform.r'
'coord-transform.R'
'data.R'
'facet-.r'
'facet-grid-.r'
'facet-null.r'
'facet-wrap.r'
'fortify-lm.r'
'fortify-map.r'
'fortify-multcomp.r'
'fortify-spatial.r'
'fortify.r'
'stat-.r'
'geom-abline.r'
'geom-rect.r'
'geom-bar.r'
'geom-bin2d.r'
'geom-blank.r'
'geom-boxplot.r'
'geom-col.r'
'geom-path.r'
'geom-contour.r'
'geom-count.r'
'geom-crossbar.r'
'geom-segment.r'
'geom-curve.r'
'geom-defaults.r'
'geom-ribbon.r'
'geom-density.r'
'geom-density2d.r'
'geom-dotplot.r'
'geom-errorbar.r'
'geom-errorbarh.r'
'geom-freqpoly.r'
'facet-.R'
'facet-grid-.R'
'facet-null.R'
'facet-wrap.R'
'fortify-lm.R'
'fortify-map.R'
'fortify-multcomp.R'
'fortify-spatial.R'
'fortify.R'
'stat-.R'
'geom-abline.R'
'geom-rect.R'
'geom-bar.R'
'geom-bin2d.R'
'geom-blank.R'
'geom-boxplot.R'
'geom-col.R'
'geom-path.R'
'geom-contour.R'
'geom-count.R'
'geom-crossbar.R'
'geom-segment.R'
'geom-curve.R'
'geom-defaults.R'
'geom-ribbon.R'
'geom-density.R'
'geom-density2d.R'
'geom-dotplot.R'
'geom-errorbar.R'
'geom-errorbarh.R'
'geom-freqpoly.R'
'geom-function.R'
'geom-hex.r'
'geom-histogram.r'
'geom-hline.r'
'geom-jitter.r'
'geom-hex.R'
'geom-histogram.R'
'geom-hline.R'
'geom-jitter.R'
'geom-label.R'
'geom-linerange.r'
'geom-point.r'
'geom-pointrange.r'
'geom-quantile.r'
'geom-rug.r'
'geom-linerange.R'
'geom-point.R'
'geom-pointrange.R'
'geom-quantile.R'
'geom-rug.R'
'geom-sf.R'
'geom-smooth.r'
'geom-spoke.r'
'geom-text.r'
'geom-tile.r'
'geom-violin.r'
'geom-vline.r'
'geom-smooth.R'
'geom-spoke.R'
'geom-text.R'
'geom-tile.R'
'geom-violin.R'
'geom-vline.R'
'ggplot2-package.R'
'grob-absolute.r'
'grob-dotstack.r'
'grob-null.r'
'grouping.r'
'grob-absolute.R'
'grob-dotstack.R'
'grob-null.R'
'grouping.R'
'guide-bins.R'
'guide-colorbar.r'
'guide-colorbar.R'
'guide-colorsteps.R'
'guide-legend.r'
'guides-.r'
'guides-axis.r'
'guides-grid.r'
'guides-none.r'
'guide-legend.R'
'guides-.R'
'guides-axis.R'
'guides-grid.R'
'guides-none.R'
'hexbin.R'
'labeller.r'
'labels.r'
'layer.r'
'labeller.R'
'labels.R'
'layer.R'
'layer-sf.R'
'layout.R'
'limits.r'
'limits.R'
'margins.R'
'performance.R'
'plot-build.r'
'plot-construction.r'
'plot-last.r'
'plot.r'
'position-.r'
'position-collide.r'
'position-dodge.r'
'position-dodge2.r'
'position-identity.r'
'position-jitter.r'
'plot-build.R'
'plot-construction.R'
'plot-last.R'
'plot.R'
'position-.R'
'position-collide.R'
'position-dodge.R'
'position-dodge2.R'
'position-identity.R'
'position-jitter.R'
'position-jitterdodge.R'
'position-nudge.R'
'position-stack.r'
'quick-plot.r'
'position-stack.R'
'quick-plot.R'
'reshape-add-margins.R'
'save.r'
'scale-.r'
'scale-alpha.r'
'save.R'
'scale-.R'
'scale-alpha.R'
'scale-binned.R'
'scale-brewer.r'
'scale-colour.r'
'scale-continuous.r'
'scale-date.r'
'scale-discrete-.r'
'scale-expansion.r'
'scale-gradient.r'
'scale-grey.r'
'scale-hue.r'
'scale-identity.r'
'scale-linetype.r'
'scale-brewer.R'
'scale-colour.R'
'scale-continuous.R'
'scale-date.R'
'scale-discrete-.R'
'scale-expansion.R'
'scale-gradient.R'
'scale-grey.R'
'scale-hue.R'
'scale-identity.R'
'scale-linetype.R'
'scale-linewidth.R'
'scale-manual.r'
'scale-shape.r'
'scale-size.r'
'scale-manual.R'
'scale-shape.R'
'scale-size.R'
'scale-steps.R'
'scale-type.R'
'scale-view.r'
'scale-viridis.r'
'scales-.r'
'scale-view.R'
'scale-viridis.R'
'scales-.R'
'stat-align.R'
'stat-bin.r'
'stat-bin2d.r'
'stat-bindot.r'
'stat-binhex.r'
'stat-boxplot.r'
'stat-contour.r'
'stat-count.r'
'stat-density-2d.r'
'stat-density.r'
'stat-ecdf.r'
'stat-bin.R'
'stat-bin2d.R'
'stat-bindot.R'
'stat-binhex.R'
'stat-boxplot.R'
'stat-contour.R'
'stat-count.R'
'stat-density-2d.R'
'stat-density.R'
'stat-ecdf.R'
'stat-ellipse.R'
'stat-function.r'
'stat-identity.r'
'stat-function.R'
'stat-identity.R'
'stat-qq-line.R'
'stat-qq.r'
'stat-quantile.r'
'stat-qq.R'
'stat-quantilemethods.R'
'stat-sf-coordinates.R'
'stat-sf.R'
'stat-smooth-methods.r'
'stat-smooth.r'
'stat-sum.r'
'stat-summary-2d.r'
'stat-smooth-methods.R'
'stat-smooth.R'
'stat-sum.R'
'stat-summary-2d.R'
'stat-summary-bin.R'
'stat-summary-hex.r'
'stat-summary.r'
'stat-unique.r'
'stat-ydensity.r'
'stat-summary-hex.R'
'stat-summary.R'
'stat-unique.R'
'stat-ydensity.R'
'summarise-plot.R'
'summary.r'
'theme-elements.r'
'theme.r'
'theme-defaults.r'
'summary.R'
'theme-elements.R'
'theme.R'
'theme-defaults.R'
'theme-current.R'
'utilities-break.r'
'utilities-grid.r'
'utilities-help.r'
'utilities-matrix.r'
'utilities-resolution.r'
'utilities-table.r'
'utilities-break.R'
'utilities-grid.R'
'utilities-help.R'
'utilities-matrix.R'
'utilities-resolution.R'
'utilities-table.R'
'utilities-tidy-eval.R'
'zxx.r'
'zzz.r'
'zxx.R'
'zzz.R'

View File

@ -1,5 +1,5 @@
#' @include ggplot-global.R
#' @include ggproto.r
#' @include ggproto.R
NULL
#' Base ggproto classes for ggplot2

View File

@ -1,4 +1,4 @@
#' @include utilities.r compat-plyr.R
#' @include utilities.R compat-plyr.R
NULL
#' Construct aesthetic mappings

View File

@ -1,4 +1,4 @@
#' @include geom-.r
#' @include geom-.R
NULL
#' Annotation: Custom grob

View File

@ -1,4 +1,4 @@
#' @include geom-map.r
#' @include geom-map.R
NULL
#' Annotation: a map

View File

@ -1,5 +1,5 @@
#' @include geom-.r
#' @include geom-raster.r
#' @include geom-.R
#' @include geom-raster.R
NULL
#' Annotation: high-performance rectangular tiling

View File

@ -1,4 +1,4 @@
#' @include ggproto.r
#' @include ggproto.R
NULL
#' @section Facets:

View File

@ -1,4 +1,4 @@
#' @include facet-.r
#' @include facet-.R
NULL
#' Lay out panels in a grid

View File

@ -1,4 +1,4 @@
#' @include facet-.r
#' @include facet-.R
NULL
#' Facet specification: a single panel.

View File

@ -1,4 +1,4 @@
#' @include facet-.r
#' @include facet-.R
NULL
#' Wrap a 1d ribbon of panels into 2d

View File

@ -1,4 +1,4 @@
#' @include legend-draw.r
#' @include legend-draw.R
NULL
#' @section Geoms:

View File

@ -1,4 +1,4 @@
#' @include stat-.r
#' @include stat-.R
NULL
#' Reference lines: horizontal, vertical, and diagonal

View File

@ -124,7 +124,7 @@ geom_bar <- function(mapping = NULL, data = NULL,
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-rect.r
#' @include geom-rect.R
GeomBar <- ggproto("GeomBar", GeomRect,
required_aes = c("x", "y"),

View File

@ -30,6 +30,6 @@ geom_col <- function(mapping = NULL, data = NULL,
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-rect.r
#' @include geom-rect.R
# TODO: deprecate this
GeomCol <- ggproto("GeomCol", GeomBar)

View File

@ -122,7 +122,7 @@ geom_contour_filled <- function(mapping = NULL, data = NULL,
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-path.r
#' @include geom-path.R
GeomContour <- ggproto("GeomContour", GeomPath,
default_aes = aes(
weight = 1,
@ -137,6 +137,6 @@ GeomContour <- ggproto("GeomContour", GeomPath,
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-polygon.r
#' @include geom-polygon.R
GeomContourFilled <- ggproto("GeomContourFilled", GeomPolygon)

View File

@ -35,7 +35,7 @@ geom_curve <- function(mapping = NULL, data = NULL,
}
#' @rdname ggplot2-ggproto
#' @include geom-segment.r
#' @include geom-segment.R
#' @format NULL
#' @usage NULL
#' @export

View File

@ -88,7 +88,7 @@ geom_density <- function(mapping = NULL, data = NULL,
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-ribbon.r
#' @include geom-ribbon.R
GeomDensity <- ggproto("GeomDensity", GeomArea,
default_aes = defaults(
aes(fill = NA, weight = 1, colour = "black", alpha = NA),

View File

@ -142,6 +142,6 @@ geom_density2d_filled <- geom_density_2d_filled
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-polygon.r
#' @include geom-polygon.R
GeomDensity2dFilled <- ggproto("GeomDensity2dFilled", GeomPolygon)

View File

@ -88,7 +88,7 @@ geom_function <- function(mapping = NULL, data = NULL, stat = "function",
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-path.r
#' @include geom-path.R
GeomFunction <- ggproto("GeomFunction", GeomPath,
draw_panel = function(self, data, panel_params, coord, arrow = NULL,
lineend = "butt", linejoin = "round", linemitre = 10,

View File

@ -1,4 +1,4 @@
#' @include stat-.r
#' @include stat-.R
NULL
#' @export

View File

@ -1,4 +1,4 @@
#' @include geom-polygon.r
#' @include geom-polygon.R
NULL
#' Polygons from a reference map

View File

@ -266,7 +266,7 @@ geom_line <- function(mapping = NULL, data = NULL, stat = "identity",
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-path.r
#' @include geom-path.R
GeomLine <- ggproto("GeomLine", GeomPath,
setup_params = function(data, params) {
params$flipped_aes <- has_flipped_aes(data, params, ambiguous = TRUE)
@ -311,7 +311,7 @@ geom_step <- function(mapping = NULL, data = NULL, stat = "identity",
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-path.r
#' @include geom-path.R
GeomStep <- ggproto("GeomStep", GeomPath,
draw_panel = function(data, panel_params, coord, direction = "hv") {
data <- dapply(data, "group", stairstep, direction = direction)

View File

@ -61,7 +61,7 @@ geom_quantile <- function(mapping = NULL, data = NULL,
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-path.r
#' @include geom-path.R
GeomQuantile <- ggproto("GeomQuantile", GeomPath,
default_aes = defaults(
aes(weight = 1, colour = "#3366FF", linewidth = 0.5),

View File

@ -1,4 +1,4 @@
#' @include geom-.r
#' @include geom-.R
NULL
#' @export

View File

@ -95,7 +95,7 @@ geom_tile <- function(mapping = NULL, data = NULL,
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-rect.r
#' @include geom-rect.R
GeomTile <- ggproto("GeomTile", GeomRect,
extra_params = c("na.rm"),

View File

@ -1,4 +1,4 @@
#' @include stat-.r
#' @include stat-.R
NULL
#' @export

View File

@ -4,7 +4,7 @@
#' extension developers who are writing new sf-based geoms or stats.
#' The sf layer checks whether the data contains a geometry column, and
#' if one is found it is automatically mapped to the `geometry` aesthetic.
#' @include layer.r
#' @include layer.R
#' @inheritParams layer
#' @keywords internal
#' @export

View File

@ -42,7 +42,7 @@ stat_count <- function(mapping = NULL, data = NULL,
#' @format NULL
#' @usage NULL
#' @export
#' @include stat-.r
#' @include stat-.R
StatCount <- ggproto("StatCount", Stat,
required_aes = "x|y",

View File

@ -1,5 +1,5 @@
#' @include theme-defaults.r
#' @include theme-elements.r
#' @include theme-defaults.R
#' @include theme-elements.R
NULL
#' Get, set, and modify the active theme

View File

@ -94,7 +94,7 @@
#' @aliases NULL
NULL
#' @include theme.r
#' @include theme.R
#' @export
#' @rdname ggtheme
theme_grey <- function(base_size = 11, base_family = "",

View File

@ -12,10 +12,10 @@ knitr::opts_chunk$set(
)
```
# ggplot2 <img src="man/figures/logo.png" align="right" width="120" />
# ggplot2 <a href="https://ggplot2.tidyverse.org"><img src="man/figures/logo.png" align="right" height="138" /></a>