(Running on R version 4.1.0)
Was following the steps in the A Complete Example using our own palm-processed cohort data.
No issues with reading data, creating field tables with , and was able to execute these two steps:
# Build palmsplus
palmsplus <- palms_build_palmsplus(palms)
# Build days
days <- palms_build_days(palmsplus)
However, encountered <error/tibble_error_assign_incompatible_size> after calling:
# Build trajectories
trajectories <- palms_build_trajectories(palmsplus)
Here is the output from rlang::last_error()
> rlang::last_error()
<error/tibble_error_assign_incompatible_size>
Assigned data `value` must be compatible with existing data.
x Existing data has 100 rows.
x Assigned data has 67 rows.
i Only vectors of size 1 are recycled.
Backtrace:
Run `rlang::last_trace()` to see the full context.
Following is the output from rlang::last_trace()
> rlang::last_trace()
<error/tibble_error_assign_incompatible_size>
Assigned data `value` must be compatible with existing data.
x Existing data has 100 rows.
x Assigned data has 67 rows.
i Only vectors of size 1 are recycled.
Backtrace:
x
1. +-palmsplusr::palms_build_trajectories(palmsplus)
2. | \-`%>%`(...)
3. +-dplyr::mutate_if(., is.logical, as.integer)
4. | \-dplyr:::check_grouped(.tbl, "mutate", "if")
5. | \-dplyr::is_grouped_df(tbl)
6. +-dplyr::mutate(., !!!args_after)
7. +-sf::st_cast(., "LINESTRING")
8. +-dplyr::summarise(., !!!args, do_union = FALSE)
9. +-sf:::summarise.sf(., !!!args, do_union = FALSE)
10. | +-base::`[[<-`(...)
11. | +-dplyr:::`[[<-.grouped_df`(...)
12. | +-base::NextMethod()
13. | \-tibble:::`[[<-.tbl_df`(...)
14. | \-tibble:::tbl_subassign(...)
15. | \-tibble:::vectbl_recycle_rhs(...)
16. | +-base::withCallingHandlers(...)
17. | \-vctrs::vec_recycle(value[[j]], nrow)
18. +-vctrs:::stop_recycle_incompatible_size(...)
19. | \-vctrs:::stop_vctrs(...)
20. | \-rlang::abort(message, class = c(class, "vctrs_error"), ...)
21. | \-rlang:::signal_abort(cnd)
22. | \-base::signalCondition(cnd)
23. \-(function (cnd) ...
I went on and test run the participant data one by one, and turned out this error happened only to some participants, at the same step when calling palms_build_trajectories(palmsplus).
Is this a known issue? Do you suggest any workaround? Thank you.
(Running on R version 4.1.0)
Was following the steps in the A Complete Example using our own palm-processed cohort data.
No issues with reading data, creating field tables with , and was able to execute these two steps:
However, encountered <error/tibble_error_assign_incompatible_size> after calling:
Here is the output from
rlang::last_error()Following is the output from
rlang::last_trace()I went on and test run the participant data one by one, and turned out this error happened only to some participants, at the same step when calling
palms_build_trajectories(palmsplus).Is this a known issue? Do you suggest any workaround? Thank you.