You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run R with the options warnPartialMatchArgs, warnPartialMatchAttr, and warnPartialMatchDollar set to TRUE, in order to minimize the chances of inadvertently assigning data to the wrong variable. However, this has the effect of generating warnings in cases where, for example, a function in a package calls another function using a partial variable name, or the variable name has been lengthened since the calling function was written.
Digging around in the source a bit, it looks like the functions being referred to are firstof and lastof in the file endpoints.R. In parse8601.R these functions are called and fed output from the function parse.side... it looks like the issue is that the list returned by parse.side uses "mon" and not the "month" that firstof and lastof are expecting.
I believe you could fix the warning by changing line 98 in parse8601.R from:
mon=as_numeric(MM),
to:
month=as_numeric(MM),
...but I'm not an expert on the codebase and I could be wrong about this.
The text was updated successfully, but these errors were encountered:
Description
I run R with the options warnPartialMatchArgs, warnPartialMatchAttr, and warnPartialMatchDollar set to TRUE, in order to minimize the chances of inadvertently assigning data to the wrong variable. However, this has the effect of generating warnings in cases where, for example, a function in a package calls another function using a partial variable name, or the variable name has been lengthened since the calling function was written.
Reproducible example
On my machine, this results in the following warnings:
Session Info
Possible cause
Digging around in the source a bit, it looks like the functions being referred to are
firstof
and lastof in the file endpoints.R. In parse8601.R these functions are called and fed output from the function parse.side... it looks like the issue is that the list returned by parse.side uses "mon" and not the "month" that firstof and lastof are expecting.I believe you could fix the warning by changing line 98 in parse8601.R from:
to:
...but I'm not an expert on the codebase and I could be wrong about this.
The text was updated successfully, but these errors were encountered: