ThinkR-open / togglr

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

Fix for when the user does not have any projects. #25

Closed KoderKow closed 4 years ago

KoderKow commented 4 years ago

The error occurs within filter; the GET request returns a data frame with 0 columns.

togglr::toggl_start()
#> Error: Problem with `filter()` input `..1`.
#> x object 'name' not found
#> i Input `..1` is `name == project_name`.

Created on 2020-07-16 by the reprex package (v0.3.0)

This fix checks if there are are any columns after bind_rows() and sets to id to NULL if there are no columns.

VincentGuyader commented 4 years ago

thanks !