ThinkR-open / togglr

an R and Rstudio wrapper for toggl Api
https://thinkr-open.github.io/togglr/
48 stars 18 forks source link

Error when using multiple tags for a single entry. #30

Open akirosingh opened 3 years ago

akirosingh commented 3 years ago

I was running into this error using the get_time_entries function from the togglr package.

Error: Internal error in vec_assign(): value should have been recycled to fit x.

I've been able to avoid the error by making sure that there are only one or no tags assigned to the time entries. This isn't a major issue, I just wanted to make sure someone else was able to find out the cause if they were troubleshooting.

statnmap commented 3 years ago

I do have time entries with multiple tags and I do not get this error.
I am using

Can you check your versions ?

akirosingh commented 3 years ago

My package versions are vctrs 0.3.6 tibble 3.1.0 dplyr 1.0.5.

<error/rlang_error> Internal error in vec_assign(): value should have been recycled to fit x. Backtrace: █

  1. ├─togglr::get_time_entries(since = Day1)
  2. │ └─%>%(...)
  3. ├─dplyr::slice(., nrow(.):1)
  4. ├─dplyr::select(...)
  5. ├─dplyr::left_join(., get_project_id_and_name(), by = c(pid = "id"))
  6. ├─dplyr::mutate(...)
  7. └─purrr::map_df(., invisible)
  8. └─dplyr::bind_rows(res, .id = .id)
  9. └─vctrs::vec_rbind(!!!dots, .names_to = .id)
    1. └─(function () ...