Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludvig committed Jan 12, 2023
2 parents 3ae1876 + 68dc5c1 commit 0b570ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rearrr
Title: Rearranging Data
Version: 0.3.2.9000
Version: 0.3.3
Authors@R:
c(person(given = "Ludvig Renbo",
family = "Olsen",
Expand Down
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

# rearrr 0.3.2.9000
# rearrr 0.3.3

* Makes tests compatible with `purrr v1.0.1`. (#2)

# rearrr 0.3.2

Expand Down
8 changes: 4 additions & 4 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,10 @@ is_checkmate_v2_1 <- function(){
v$major == 2 && v$minor >= 1
}

is_purr_v1_or_pre1_dev <- function(){
is_purr_v1 <- function(){
v <- get_pkg_version("purrr")
#current dev version is called 0.9000.0.9000
v$major == 1 || v$major == 0 && v$minor == 9000
v$major >= 1
}

purrr_error <- ifelse(is_purr_v1_or_pre1_dev(), "rlangerror", "simpleError")
if (is_purr_v1()) {purrr_error <- c("purrr_error_indexed", "rlang_error")
} else {purrr_error <- "simpleError"}

0 comments on commit 0b570ef

Please sign in to comment.