Skip to content

Commit 59850ac

Browse files
authored
Merge pull request #1 from tidyverse/master
Sync branches
2 parents a11e098 + 37eb64d commit 59850ac

Some content is hidden

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

71 files changed

+490
-1047
lines changed

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

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name: R-CMD-check
1010

1111
# Increment this version when we want to clear cache
1212
env:
13-
cache-version: v3
13+
cache-version: v4
1414

1515
jobs:
1616
R-CMD-check:
@@ -24,17 +24,16 @@ jobs:
2424
config:
2525
- {os: windows-latest, r: '4.0', vdiffr: true, xref: true}
2626
- {os: macOS-latest, r: '4.0', vdiffr: true, xref: true}
27-
- {os: macOS-latest, r: 'devel', vdiffr: false, xref: true}
28-
- {os: ubuntu-16.04, r: '4.0', vdiffr: true, xref: true, cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
29-
- {os: ubuntu-16.04, r: '3.6', vdiffr: false, xref: true, cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
30-
- {os: ubuntu-16.04, r: '3.5', vdiffr: false, xref: true, cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
31-
- {os: ubuntu-16.04, r: '3.4', vdiffr: false, xref: true, cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
32-
- {os: ubuntu-16.04, r: '3.3', vdiffr: false, xref: true, cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
33-
- {os: ubuntu-16.04, r: '3.2', vdiffr: false, xref: false, cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
27+
- {os: ubuntu-16.04, r: 'devel', vdiffr: false, xref: true}
28+
- {os: ubuntu-16.04, r: '4.0', vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
29+
- {os: ubuntu-16.04, r: '3.6', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
30+
- {os: ubuntu-16.04, r: '3.5', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
31+
- {os: ubuntu-16.04, r: '3.4', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
32+
- {os: ubuntu-16.04, r: '3.3', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
3433

3534
env:
3635
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
37-
CRAN: ${{ matrix.config.cran }}
36+
RSPM: ${{ matrix.config.rspm }}
3837
# don't treat missing suggested packages as error
3938
_R_CHECK_FORCE_SUGGESTS_: false
4039
# Some packages might unavailable on the older versions, so let's ignore xref warnings
@@ -49,6 +48,7 @@ jobs:
4948
- uses: r-lib/actions/setup-r@master
5049
with:
5150
r-version: ${{ matrix.config.r }}
51+
http-user-agent: ${{ matrix.config.http-user-agent }}
5252

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

@@ -68,34 +68,20 @@ jobs:
6868

6969
- name: Install system dependencies on Linux
7070
if: runner.os == 'Linux'
71-
env:
72-
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
7371
run: |
74-
# Use cran:libgit2 PPA to avoid conflicts of libcurl4-gnutls-dev
75-
# Remove this after https://github.com/r-lib/actions/pull/97 gets merged
76-
sudo add-apt-repository ppa:cran/libgit2
77-
78-
Rscript -e "remotes::install_github('r-hub/sysreqs')"
79-
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
80-
sudo -s eval "$sysreqs"
72+
while read -r cmd
73+
do
74+
eval sudo $cmd
75+
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "16.04"))')
8176
8277
- name: Install system dependencies on macOS
8378
if: runner.os == 'macOS'
8479
run: |
8580
# XQuartz is needed by vdiffr
8681
brew cask install xquartz
8782
88-
# To install vdiffr, these three libraries/tools are needed in addition to XQuartz
89-
# - freetype (already installed, needed by systemfonts)
90-
# - cairo (not installed, needed by gdtools)
91-
# - pkg-config (not installed, needed to set proper build settings)
92-
brew install pkg-config cairo
93-
94-
# Since sf dependencies are a bit heavy, install them only when they are needed
95-
SF_NEEDS_UPDATED=$(Rscript -e 'if (!"sf" %in% installed.packages()[,"Package"] || "sf" %in% old.packages()[,"Package"]) cat("yes")')
96-
if [ "${SF_NEEDS_UPDATED}" == "yes" ]; then
97-
brew install udunits gdal
98-
fi
83+
# Use only binary packages
84+
echo 'options(pkgType = "binary")' >> ~/.Rprofile
9985
10086
- name: Install dependencies
10187
run: |

.github/workflows/pkgdown.yaml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,41 @@ name: pkgdown
1010
jobs:
1111
pkgdown:
1212
runs-on: macOS-latest
13+
env:
14+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1315
steps:
1416
- uses: actions/checkout@v2
17+
1518
- uses: r-lib/actions/setup-r@master
19+
1620
- uses: r-lib/actions/setup-pandoc@master
21+
22+
- name: Query dependencies
23+
run: |
24+
install.packages('remotes')
25+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
26+
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
27+
shell: Rscript {0}
28+
29+
- name: Cache R packages
30+
uses: actions/cache@v1
31+
with:
32+
path: ${{ env.R_LIBS_USER }}
33+
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
34+
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
35+
1736
- name: Install dependencies
1837
run: |
19-
install.packages("remotes")
20-
remotes::install_deps(dependencies = TRUE)
38+
remotes::install_deps(dependencies = TRUE, type = "binary")
2139
remotes::install_github("tidyverse/tidytemplate")
2240
remotes::install_dev("pkgdown")
2341
shell: Rscript {0}
42+
2443
- name: Install package
2544
run: R CMD INSTALL .
45+
2646
- name: Deploy package
27-
run: pkgdown::deploy_to_branch(new_process = FALSE)
28-
shell: Rscript {0}
47+
run: |
48+
git config --local user.email "[email protected]"
49+
git config --local user.name "GitHub Actions"
50+
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'

.github/workflows/pr-commands.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@ jobs:
77
if: startsWith(github.event.comment.body, '/document')
88
name: document
99
runs-on: macOS-latest
10+
env:
11+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1012
steps:
1113
- uses: actions/checkout@v2
1214
- uses: r-lib/actions/pr-fetch@master
1315
with:
1416
repo-token: ${{ secrets.GITHUB_TOKEN }}
1517
- uses: r-lib/actions/setup-r@master
1618
- name: Install dependencies
17-
run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)'
19+
run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE, type = "binary")'
1820
- name: Document
1921
run: Rscript -e 'roxygen2::roxygenise()'
2022
- name: commit
2123
run: |
24+
git config --local user.email "[email protected]"
25+
git config --local user.name "GitHub Actions"
2226
git add man/\* NAMESPACE
2327
git commit -m 'Document'
2428
- uses: r-lib/actions/pr-push@master
@@ -28,6 +32,8 @@ jobs:
2832
if: startsWith(github.event.comment.body, '/style')
2933
name: style
3034
runs-on: macOS-latest
35+
env:
36+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3137
steps:
3238
- uses: actions/checkout@v2
3339
- uses: r-lib/actions/pr-fetch@master
@@ -40,13 +46,10 @@ jobs:
4046
run: Rscript -e 'styler::style_pkg()'
4147
- name: commit
4248
run: |
49+
git config --local user.email "[email protected]"
50+
git config --local user.name "GitHub Actions"
4351
git add \*.R
4452
git commit -m 'Style'
4553
- uses: r-lib/actions/pr-push@master
4654
with:
4755
repo-token: ${{ secrets.GITHUB_TOKEN }}
48-
# A mock job just to ensure we have a successful build status
49-
finish:
50-
runs-on: ubuntu-latest
51-
steps:
52-
- run: true

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,14 @@ jobs:
3939
restore-keys: ${{ env.cache-version }}-macOS-r-${{ env.r-version }}-
4040

4141
- name: Install system dependencies on macOS
42-
if: runner.os == 'macOS'
4342
run: |
4443
# XQuartz is needed by vdiffr
4544
brew cask install xquartz
4645
47-
# To install vdiffr, these three libraries/tools are needed in addition to XQuartz
48-
# - freetype (already installed, needed by systemfonts)
49-
# - cairo (not installed, needed by gdtools)
50-
# - pkg-config (not installed, needed to set proper build settings)
51-
brew install pkg-config cairo
52-
53-
# Since sf dependencies are a bit heavy, install them only when they are needed
54-
SF_NEEDS_UPDATED=$(Rscript -e 'if (!"sf" %in% installed.packages()[,"Package"] || "sf" %in% old.packages()[,"Package"]) cat("yes")')
55-
if [ "${SF_NEEDS_UPDATED}" == "yes" ]; then
56-
brew install udunits gdal
57-
fi
58-
5946
- name: Install dependencies
6047
run: |
6148
install.packages(c("remotes"))
62-
remotes::install_deps(dependencies = TRUE)
49+
remotes::install_deps(dependencies = TRUE, type = "binary")
6350
remotes::install_cran("covr")
6451
shell: Rscript {0}
6552

DESCRIPTION

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: ggplot2
2-
Version: 3.3.2.9000
2+
Version: 3.3.3.9000
33
Title: Create Elegant Data Visualisations Using the Grammar of Graphics
44
Description: A system for 'declaratively' creating graphics,
55
based on "The Grammar of Graphics". You provide the data, tell 'ggplot2'
@@ -25,7 +25,7 @@ Authors@R: c(
2525
person("RStudio", role = c("cph", "fnd"))
2626
)
2727
Depends:
28-
R (>= 3.2)
28+
R (>= 3.3)
2929
Imports:
3030
digest,
3131
glue,
@@ -63,10 +63,11 @@ Suggests:
6363
sf (>= 0.7-3),
6464
svglite (>= 1.2.0.9001),
6565
testthat (>= 2.1.0),
66-
vdiffr (>= 0.3.0)
66+
vdiffr (>= 0.3.0),
67+
xml2
6768
Enhances: sp
68-
License: GPL-2 | file LICENSE
69-
URL: http://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2
69+
License: MIT + file LICENSE
70+
URL: https://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2
7071
BugReports: https://github.com/tidyverse/ggplot2/issues
7172
LazyData: true
7273
Collate:
@@ -263,6 +264,6 @@ Collate:
263264
'zxx.r'
264265
'zzz.r'
265266
VignetteBuilder: knitr
266-
RoxygenNote: 7.1.0.9000
267+
RoxygenNote: 7.1.1
267268
Roxygen: list(markdown = TRUE)
268269
Encoding: UTF-8

0 commit comments

Comments
 (0)