"
> Cc: "Simon Urbanek" , "r-devel@r-project.org"
>
> Betreff: Re: [Rd] S3 weirdness
>
> On Thu, Jun 24, 2021 at 4:48 PM Gabor Grothendieck
> wrote:
>
> > The fact that zoo:: in one part of the code has a side effect in
> > another seems not to be in
On Thu, Jun 24, 2021 at 4:48 PM Gabor Grothendieck
wrote:
> The fact that zoo:: in one part of the code has a side effect in
> another seems not to be in the spirit of functional programming or
> modularity.
>
While this is true, there is no way I know of for a package function
to...well, functi
The fact that zoo:: in one part of the code has a side effect in
another seems not to be in the spirit of functional programming or
modularity.
On Thu, Jun 24, 2021 at 6:51 PM Simon Urbanek
wrote:
>
> Gabor,
>
> just by using zoo::read.zoo() you *do* load the namespace:
>
> > args(zoo::read.zoo)
Gabor,
just by using zoo::read.zoo() you *do* load the namespace:
> args(zoo::read.zoo)
function (file, format = "", tz = "", FUN = NULL, regular = FALSE,
index.column = 1, drop = TRUE, FUN2 = NULL, split = NULL,
aggregate = FALSE, ..., text, read = read.table)
NULL
> sessionInfo()
R
If we start up a vanilla session of R with no packages loaded and
type the single line of code below as the first line entered then
we get the output shown below. The NA in the output and the length
of 7 indicate that as.ts dispatched as.ts.zoo since as.ts.default
would have resulted in a length o