Skip to content

Commit

Permalink
Specify minimum needed R version in DESCRIPTION
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed May 5, 2024
1 parent 6e9c62e commit 672a55f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/check-full.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
#
# NOTE: This workflow is overkill for most R packages and
# check-standard.yaml is likely a better choice.
# usethis::use_github_action("check-standard") will install it.
on:
push:
branches: [main, master]
Expand All @@ -30,13 +24,13 @@ jobs:
- { os: windows-latest, r: "release" }
- { os: windows-latest, r: "oldrel-1" }

# Use older ubuntu to maximise backward compatibility
- { os: ubuntu-latest, r: "devel", http-user-agent: "release" }
- { os: ubuntu-latest, r: "release" }
- { os: ubuntu-latest, r: "oldrel-1" }
- { os: ubuntu-latest, r: "oldrel-2" }
- { os: ubuntu-latest, r: "oldrel-3" }
- { os: ubuntu-latest, r: "oldrel-4" }
- { os: ubuntu-latest, r: "3.6" }

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ revdep/library.noindex
revdep/data.sqlite
/doc/
/Meta/
tests/testthat/Rplots.pdf
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ VignetteBuilder:
knitr
Encoding: UTF-8
Language: en-US
Depends:
R (>= 3.6.0)
Imports:
ggplot2 (>= 3.5.0)
Suggests:
knitr,
rmarkdown,
testthat,
vdiffr (>= 1.0.5)
vdiffr (>= 1.0.7)
Roxygen: list(markdown = TRUE, roclets = c("rd", "namespace", "collate"))
RoxygenNote: 7.3.1
Config/testthat/edition: 3
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-geom_signific_strict.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
test_that("the plotting works - strict test", {
# don't run on CRAN; allows ggplot2 people to make changes to internal dataframes
skip_on_cran()
skip_if(getRversion() < "4.0")

library(ggplot2)

Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-vdiffr.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
test_that("plots are rendered correctly", {
skip_on_cran()
skip_if_not_installed("vdiffr")
skip_if(getRversion() < "4.1")
library(ggplot2)

set.seed(123)
Expand Down

0 comments on commit 672a55f

Please sign in to comment.