This is probably a simple fix, but get_comment_details returns an error when I try it with larger sets of ids (it worked with a handful, but when I tried a few thousand, something ended up off)
metadata <- purrr::map_dfr(content, ~.x$data$attributes)
ids <- map(content, ~.x |> pluck("data", "id")) |>
discard(is.null) |> # FIXME? hopefully by discarding nulls, we get the same length as metadata....no this did not seem to work...
as.character()
metadata$id <- ids
Error in `$<-`:
! Assigned data `ids` must be compatible with existing data.
✖ Existing data has 6184 rows.
✖ Assigned data has 6106 rows.
ℹ Only vectors of size 1 are recycled.
Caused by error in `vectbl_recycle_rhs_rows()`:
! Can't recycle input of size 6106 to size 6184.
This is probably a simple fix, but
get_comment_details
returns an error when I try it with larger sets of ids (it worked with a handful, but when I tried a few thousand, something ended up off)