We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expect_snapshot_value()
integer(0)
I came across another case where the function does not work:
x <- dplyr::group_by(head(iris, 1), Species) expect_snapshot_value(x, "deparse") # Error in integer(0) : could not find function "integer"
Problem could be solved by adding another functions to https://github.com/r-lib/testthat/blob/main/R/snapshot-value.R#L71. But I think it's better to use baseenv() instead of emptyenv():
reparse <- function(x) { env <- env(baseenv(), new = methods::new, getClass = methods::getClass ) eval(parse(text = x), env) }
This should help with #1678
Side note: there is repeated definition of reparse: https://github.com/r-lib/testthat/blob/main/R/snapshot-value.R#L92
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I came across another case where the function does not work:
Problem could be solved by adding another functions to https://github.com/r-lib/testthat/blob/main/R/snapshot-value.R#L71. But I think it's better to use baseenv() instead of emptyenv():
This should help with #1678
Side note: there is repeated definition of reparse: https://github.com/r-lib/testthat/blob/main/R/snapshot-value.R#L92
The text was updated successfully, but these errors were encountered: