[R] make check failure with R-1.7.0

Patrick Connolly p.connolly at hortresearch.co.nz
Thu Apr 17 03:03:35 CEST 2003


On Thu, 17-Apr-2003 at 12:05PM +1200, Patrick Connolly wrote:

|> I'm baffled.  When I run make check after installing from source, I
|> get a Error 2.  From my understanding of how these things work, it
|> would appear to be coming from this (as at the end of base-Ex.Rout.fail:
|> 
|> 
|> > has.VR <- require(MASS, quietly = TRUE)
|> 
|> Attaching package 'MASS':
|> 
|> 
|> 	The following object(s) are masked from package:base :
|> 
|> 	 confint confint.lm nclass.FD nclass.scott vcov vcov.glm vcov.lm 
|> 
|> > if(!has.VR) {
|> + ## From Venables and Ripley (2002) p.165.
|> + N <- c(0,1,0,1,1,1,0,0,0,1,1,0,1,1,0,0,1,0,1,0,1,1,0,0)
|> + P <- c(1,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,0,0,1,0,1,1,0)
|> + K <- c(1,0,0,1,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,1,0)
|> + yield <- c(49.5,62.8,46.8,57.0,59.8,58.5,55.5,56.0,62.8,55.8,69.5,55.0,
|> +            62.0,48.8,45.5,44.2,52.0,51.5,49.8,48.8,57.2,59.0,53.2,56.0)
|> + npk <- data.frame(block=gl(6,4), N=factor(N), P=factor(P),
|> +                   K=factor(K), yield=yield)
|> + }
|> > 
|> > op <- options(contrasts=c("contr.helmert", "contr.poly"))
|> > npk.aov <- aov(yield ~ block + N*P*K, npk)
|> Error in terms.formula(formula, "Error", data = data) : 
|> 	Object "npk" not found
|> Execution halted
|> 
|> 
|> Why would npk not be found?

OK, it's somewhat clearer now.  Since npk is only created if !has.VR
is TRUE, it won't happen unless MASS isn't available.  I don't think
that's the intention.

But everyone who doesn't have an npk object will have the same
problem, so I'd expect that means everyone who runs that script.

Anyone with a better experience?

best

-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~



More information about the R-help mailing list