Skip to content

Commit

Permalink
Avoid is.R()
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Mar 4, 2024
1 parent 5eccf63 commit bf399e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: drake
Title: A Pipeline Toolkit for Reproducible Computation at Scale
Version: 7.13.8
Version: 7.13.9
Authors@R: c(
person(
given = c("William", "Michael"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 7.13.9

* Avoid `is.R()`.

# Version 7.13.8

* Fix CRAN note.
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-6-analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ test_with_dir("solitary codetools globals tests", {
out <- drake_deps(quote(local(x <- 1, e)))$globals
expect_equal(sort(out), sort(c("local", "e")))
f <- function() {
if (is.R()) {
if (g()) {
x
} else {
y
}
}
out <- drake_deps(f)$globals
expect_equal(sort(out), sort(c("if", "is.R", "x", "y")))
expect_equal(sort(out), sort(c("if", "g", "x", "y")))
f <- function() {
if (FALSE) {
x
Expand Down

0 comments on commit bf399e8

Please sign in to comment.