doctest crashes after purrr update
Closed this issue · 2 comments
JZschache commented
Hello,
after upgrading purrr fom 0.3.5 to 1.0.0, doctest crashes:
> devtools::document()
ℹ Updating usefulR documentation
ℹ Loading usefulR
Error in `map()`:
ℹ In index: 1.
Caused by error in `purrr::modify()`:
! `.x` must be a vector, list, or data frame, not a call.
Run `rlang::last_error()` to see where the error occurred.
> rlang::last_error()
<error/rlang_error>
Error in `map()`:
ℹ In index: 1.
Caused by error in `purrr::modify()`:
! `.x` must be a vector, list, or data frame, not a call.
---
Backtrace:
1. devtools::document()
2. roxygen2::roxygenise(pkg$path, roclets)
3. base::lapply(...)
5. doctest:::roclet_process.roclet_doctest(X[[i]], ...)
6. base::lapply(blocks, build_result_from_block)
7. doctest (local) FUN(X[[i]], ...)
8. doctest:::process_test(test, result)
9. doctest:::create_expectations(test)
10. doctest:::recursively_rewrite(example_exprs)
11. purrr::modify(x, recursively_rewrite)
12. purrr::map(vec_proxy(.x), .f, ...)
13. purrr:::map_("list", .x, .f, ..., .progress = .progress)
16. doctest (local) .f(.x[[i]], ...)
17. purrr::modify(x, recursively_rewrite)
hughjonesd commented
OK. I hope this is fixed in master, but I would very much appreciate if you could check!
JZschache commented
Thank you for the quick response. It works now for me.