Skip to content

Commit 6a98580

Browse files
update parser version
1 parent 8b8ed19 commit 6a98580

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

R/environments.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
#' * `parser_version_find()` determines the version of the parser from parse
2727
#' data. This does not necessarily mean that the version found is the
2828
#' actual version, but it *behaves* like it. For example, code that does not
29-
#' contain `EQ_ASSIGN` is parsed the same way with version 1 and 2. If the
30-
#' behavior is identical, the version is set to 1.
29+
#' contain `EQ_ASSIGN` is parsed the same way with version `1` and `2`. If the
30+
#' behavior is identical, the version is set to `1`. Since the package now
31+
#' requires R >= 4.0, the version is always set to `3`.
3132
#' @param version The version of the parser to be used.
3233
#' @param pd A parse table such as the output from
3334
#' `utils::getParseData(parse(text = text))`.
@@ -42,10 +43,7 @@ parser_version_get <- function() {
4243
}
4344

4445
#' @rdname parser_version_set
45-
parser_version_find <- function(pd) {
46-
if (any(pd$token == "equal_assign")) 2L else 3L
47-
}
48-
46+
parser_version_find <- function() 3L
4947

5048
#' The elements that are added to this environment are:
5149
#'

cran-comments.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ in the R parser that caused unit tests to fail.
1010

1111
## Test environments
1212

13-
- ubuntu 20.04 (on GitHub Actions): R devel, R 4.3.0, R 4.2.1, 4.1.2, R 4.0.5,
14-
R 3.6
15-
- Windows Server 10 (on GitHub Actions): R devel, R 4.3.0, R 4.2.1, R 4.1.2,
16-
R 3.6.
13+
- ubuntu-latest (on GitHub Actions): R devel, R 4.4.0, R 4.3.0, R 4.2.1, 4.1.2, R 4.0.5
14+
- Windows Server 10 (on GitHub Actions): R devel, R 4.4.0, R 4.3.0, R 4.2.1, R 4.1.2, R 4.0.5
1715
- win-builder: R devel
1816

1917
## R CMD check results

man/parser_version_set.Rd

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)