[Rd] Re: autoload error in profile {was anova-bug in R-version 1.0.0?} (PR#486)
maechler@stat.math.ethz.ch
maechler@stat.math.ethz.ch
Tue, 14 Mar 2000 10:32:37 +0100 (MET)
>>>>> "BDR" == Prof Brian D Ripley <ripley@stats.ox.ac.uk> writes:
BDR> On Tue, 7 Mar 2000, Martin Maechler wrote:
>> >>>>> "BDR" == Prof Brian D Ripley <ripley@stats.ox.ac.uk> writes:
>>
BDR> On Tue, 7 Mar 2000, Trenkler, Dietrich wrote:
>> >> I think I've discovered what went wrong.
>> >>
>> >> My workspace included a function wilcox.test formerly copied from
>> >> ctest. Now ctest ist part of the distribution and because of that I
>> >> always got the message:
>> >>
>> >> [Previously saved workspace restored]
>> >>
>> >> Error in autoload("wilcox.test", "ctest") :
>> >> Object already exists
>> >>
>> >> I didn't take care of this message. Now I removed wilcox.test, saved
>> >> the WS, restarted R without the vanilla-option and alas, anova
>> >> now works.
>> >>
>> >> It seems that R stops initializing after encountering the error
>> >> mentioned above. Is this correct?
>>
BDR> Yes, in that the rest of the system Rprofile file is skipped
BDR> and hence options show.signif.stars and show.coef.Pvalues are not set.
>> but other options as well..
>> I think this shouldn't happen and *is* a bug.
BDR> It looks to me as if a bit more protection is needed in print.coefmat,
BDR> at least.
which Brian has implemented in the mean time.
....
>> For the 1.0.x patches, at least, I'll move the autoload()'s to the end of
>> profile/Common.R
BDR> I _think_ they should have try() around them, which is what S-PLUS
BDR> now does with all startup code.
I tried this, but it does not work :
try(autoload(..)) works okay when used after startup, but not *during*
startup. However, I'll put a workaround into Common.R
Should this {try(.) not working during startup} be another bug report ?
Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._