Loading packages at startup
Warnes, Gregory R
gregory_r_warnes@groton.pfizer.com
Tue, 22 Oct 2002 10:06:58 -0400
Oh wow, just looking over this, I already see a bug.
This section of load.session():
> for( i in saved.search[!identical] )
> {
> if( charmatch( "file:", i, nomatch=FALSE) )
> attach(sub( "file:", "", "file:test" ) )
> else if (charmatch( "package:", i, nomatch=FALSE) )
> stop(paste("Somehow we missed loading package",i))
> else
> {
> do.call("attach",list(as.name(i)))
> }
>
should be
> for( i in saved.search[!identical] )
> {
> if( charmatch( "file:", i, nomatch=FALSE) )
> attach(sub( "file:", "", i ) )
> else if (charmatch( "package:", i, nomatch=FALSE) )
> stop(paste("Somehow we missed loading package",i))
> else
> {
> do.call("attach",list(as.name(i)))
> }
>
-Greg
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._