Skip to content

Commit

Permalink
numeric_version() wants character inputs.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84608 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Jun 27, 2023
1 parent 12533b7 commit 5ed0a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/reg-tests-1e.R
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ cls <- c("raw", "logical", "integer", "numeric", "complex",
names(cls) <- cls
be <- baseenv()
asF <- lapply(cls, \(cl) be[[paste0("as.",cl)]] %||% be[[cl]])
obs <- lapply(cls, \(cl) asF[[cl]](switch(cl, "difftime" = "2:1:0", "noquote" = letters, 1:2)))
obs <- lapply(cls, \(cl) asF[[cl]](switch(cl, "difftime" = "2:1:0", "noquote" = letters, "numeric_version" = as.character(1:2), 1:2)))
asDF <- lapply(cls, \(cl) getVaW(be[[paste0("as.data.frame.", cl)]](obs[[cl]])))
r <- local({ g <- as.data.frame.logical; f <- function(L=TRUE) g(L)
getVaW(f()) })
Expand Down

0 comments on commit 5ed0a3a

Please sign in to comment.