Re: [Rd] S3 weirdness

2021-06-24 Thread Gabriel Becker
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

Re: [Rd] S3 weirdness

2021-06-24 Thread Gabor Grothendieck
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)

Re: [Rd] S3 weirdness

2021-06-24 Thread Simon Urbanek
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

[Rd] S3 weirdness

2021-06-24 Thread Gabor Grothendieck
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

Re: [Rd] Possible bug in help file name generation

2021-06-24 Thread Iñaki Ucar
On Thu, 24 Jun 2021 at 14:21, Kurt Hornik wrote: > > > Deepayan Sarkar writes: > > > On Thu, Jun 24, 2021 at 5:31 PM Iñaki Ucar wrote: > >> > >> Hi, > >> > >> I noticed that R 4.1 places html files into the packages' help > >> directory, compared to previous versions, which used an RDS. I fou

Re: [Rd] Possible bug in help file name generation

2021-06-24 Thread Kurt Hornik
> Deepayan Sarkar writes: > On Thu, Jun 24, 2021 at 5:31 PM Iñaki Ucar wrote: >> >> Hi, >> >> I noticed that R 4.1 places html files into the packages' help >> directory, compared to previous versions, which used an RDS. I found a >> possible bug in the code that processes the aliases from

Re: [Rd] Possible bug in help file name generation

2021-06-24 Thread Deepayan Sarkar
On Thu, Jun 24, 2021 at 5:31 PM Iñaki Ucar wrote: > > Hi, > > I noticed that R 4.1 places html files into the packages' help > directory, compared to previous versions, which used an RDS. I found a > possible bug in the code that processes the aliases from the Rd files > and generates the names fo

[Rd] Possible bug in help file name generation

2021-06-24 Thread Iñaki Ucar
Hi, I noticed that R 4.1 places html files into the packages' help directory, compared to previous versions, which used an RDS. I found a possible bug in the code that processes the aliases from the Rd files and generates the names for these html files (I haven't identified where this happens thou