Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`methods` not loaded/working when using lubridate::object notation in Rscript #407
I'm having some trouble executing functions that rely on package methods when being run via Rscript. I already know that methods is not attached via Rscript, but it should be loaded (and usable) by the dependent packages and accessible via their package namespaces, at least I thought so...
Example R script (executed via
Output, with my comments and questions mixed below ...
First, here's the startup
As expected with
Now, what's surprising to me is that I thought the
But now I'm really confused, because methods does seem to have been loaded, as seen with the next
Just to be sure (about my confusion), let's try calling
OK, now let's explicitly attach methods and try the
methods is not attached (as opposed to loaded-but-not-attached).
I know I could solve all the headaches by simply including
Does this seem like an R problem, or possibly a namespace issue with lubridate?