Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

now argument #15

Open
sebsilas opened this issue Oct 22, 2020 · 1 comment
Open

now argument #15

sebsilas opened this issue Oct 22, 2020 · 1 comment

Comments

@sebsilas
Copy link

sebsilas commented Oct 22, 2020

Hi Andrie,

Specifying something other than the default for the now argument in calendar_events gives me the following error:

Reading calendar [email protected]
Error: Can't subset columns that don't exist.
x Column summary doesn't exist.

For example:


library(gcalendr)
library(lubridate)

nine_hours_ago <- Sys.time() - dhours(9)

events <- calendar_events(jane,
                          days_in_past = 100,
                          days_in_future = 100,
                          now = nine_hours_ago)

By removing the now argument, it works; even though the actual output should be the same (there should still be several events outputting whether now is at the current time or several hours ago).

@sebsilas
Copy link
Author

I believe this is due to the fact that, despite that in the documentation it says the now argument defaults to Sys.time(), it in fact means Sys.Date().

Hence, this works with a date but not a time currently.

Can this be resolved so that the "now" value can be sensitive to a time? This seems to be a very necessary feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant