Check crashes on get_climate_safran with stars v0.7-0
Error ('test-get_climate_safran.R:24:3'): get_climate_safran works ──────────
<dplyr:::mutate_error/rlang_error/error/condition>
Error in `stopifnot(!inherits(x, "sf"), !missing(sf_column_name), !missing(agr))`: i In argument: `Date = (function (x, ...) ...`.
Caused by error in `charToDate()`:
! character string is not in a standard unambiguous format
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-get_climate_safran.R:24:3
2. │ └─base::withCallingHandlers(...)
3. ├─airGRccia::get_climate_safran(...)
4. │ ├─RADIS::get_sim2_daily(...)
5. │ └─RADIS:::get_sim2_daily.sf(...)
6. │ └─RADIS::spatial_combination(...)
7. │ └─... %>% arrange(Date, geometry)
8. ├─dplyr::arrange(., Date, geometry)
9. ├─dplyr::mutate_at(., "Date", as.Date)
10. │ ├─dplyr::mutate(.tbl, !!!funs)
11. │ ├─sf:::mutate.sf(.tbl, !!!funs)
12. │ │ └─sf:::.re_sf(NextMethod(), sf_column_name = sf_column_name, agr)
13. │ │ └─base::stopifnot(...)
14. │ ├─base::NextMethod()
15. │ └─dplyr:::mutate.data.frame(.tbl, !!!funs)
16. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
17. │ ├─base::withCallingHandlers(...)
18. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
19. │ └─mask$eval_all_mutate(quo)
20. │ └─dplyr (local) eval()
21. ├─base (local) `<fn>`(Date)
22. ├─base::as.Date.character(Date)
23. │ └─base (local) charToDate(x)
24. │ └─base::stop("character string is not in a standard unambiguous format")
25. └─base::.handleSimpleError(...)
26. └─dplyr (local) h(simpleError(msg, call))
27. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)