-
Notifications
You must be signed in to change notification settings - Fork 982
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
fcase doesn't recognize S4 object : lubridate example #4131
Comments
I am not sure but I think I see where the issue is coming from. We only take into account the attributes of the first argument. We actually have the same problem with |
@torema-ed , thank you very much for reporting this. I will raise it as a feature request. In the meantime I think that we should notify the user (at least for |
@torema-ed , now that #4135 has been closed you should have an error message in your example. |
@2005m Great, thank you! I'll leave the decision of closing this issue to you as I'm not too sure if you want to keep it open for future reference. |
Thank you @torema-ed , I would leave it open for now in case there are other S4 objects for which fcase is not working. I am also curious to know if there is a real demand for it. Depending on the Rdatatable team we might want to support lubridate in the future or not...it is opened to discussion... |
Thank you all for the hard work in creating
fcase
. I have tried it out on a project that I'm currently working on and encountered problems when it was used together with lubridate period creation functions. It seems to recognizelubridate::weeks
,lubridate::months
,lubridate::years
aslubridate::days
.reprex:
Created on 2019-12-19 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: