On Mon, Jul 18, 2011 at 2:57 PM, peter dalgaard <pda...@gmail.com> wrote: > > On Jul 18, 2011, at 20:19 , Gabor Grothendieck wrote: > >> On Mon, Jul 18, 2011 at 1:59 PM, peter dalgaard <pda...@gmail.com> wrote: >>> >>> On Jul 18, 2011, at 16:36 , Gabor Grothendieck wrote: >>>>> >>>>> ..... >>>>> >>>>> However, this was after reinstalling and reloading zoo. Restarting R and >>>>> retrying did indeed make things work. >>>>> >>>> >>>> Does the fact that it worked if R was restarted, but not without, >>>> imply that there is something in R that needs to be fixed? >>> >>> Well, zoo is rewriting code in base. Apparently, it didn't do it again on >>> the second library(zoo). Not really sure who to blame for what... >>> >> >> Its done in the .onLoad function in zzz.R in zoo. It seems that if >> one re-installs zoo and then runs it that the .onLoad is not rerun. I >> would have thought it would reload the package and therefore .onLoad >> would be run again.. >> >> Also there exists .onAttach but its not used by zoo. Should the code >> for as.Date.numeric be put in an .onAttach instead or in both .onLoad >> and .onAttach? > > Or perhaps not at all! > > I'll leave this discussion for others. >
An INSTALL file has been added to zoo to ask users to restart R after installing zoo. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.