Hi,
Thank you for this pkg.
I am trying to read a mbox file (from google takeout) and I am having this error:
data <- read_mbox(file)
Error in `dplyr::na_if()`:
! Can't convert `y` <character> to match type of `x` <tbl_df>.
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/vctrs_error_cast>
Error in `dplyr::na_if()`:
! Can't convert `y` <character> to match type of `x` <tbl_df>.
---
Backtrace:
▆
1. ├─mboxr::read_mbox(file)
2. │ ├─... %>% ...
3. │ └─dplyr::na_if(...)
4. └─dplyr::mutate(., date = lubridate::as_datetime(df$date))
Run rlang::last_trace(drop = FALSE) to see 11 hidden frames.
> rlang::last_trace(drop = FALSE)
<error/vctrs_error_cast>
Error in `dplyr::na_if()`:
! Can't convert `y` <character> to match type of `x` <tbl_df>.
---
Backtrace:
▆
1. ├─mboxr::read_mbox(file)
2. │ ├─... %>% ...
3. │ └─dplyr::na_if(...)
4. │ └─vctrs::vec_cast(x = y, to = x, x_arg = "y", to_arg = "x")
5. ├─dplyr::mutate(., date = lubridate::as_datetime(df$date))
6. └─vctrs (local) `<fn>`()
7. └─vctrs::vec_default_cast(...)
8. ├─base::withRestarts(...)
9. │ └─base (local) withOneRestart(expr, restarts[[1L]])
10. │ └─base (local) doWithOneRestart(return(expr), restart)
11. └─vctrs::stop_incompatible_cast(...)
12. └─vctrs::stop_incompatible_type(...)
13. └─vctrs:::stop_incompatible(...)
14. └─vctrs:::stop_vctrs(...)
15. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = call)
Any clue?
Thanks!
Hi,
Thank you for this pkg.
I am trying to read a mbox file (from google takeout) and I am having this error:
Any clue?
Thanks!