Thanks, Duncan, I started a new session under the suspicion that packages were clashing. ######### # RUN 1 ######### require(faraway) # Loading required package: faraway data(oatvar) ov.lm <- lm(yield ~ variety + block, oatvar) require(alr3) # Loading required package: alr3 out <- tukey.nonadd.test(ov.lm) ######### # RUN 1 OK # RUN 2 ######### require(HH) #Loading required package: HH #Loading required package: lattice # #Attaching package: 'lattice' # # # The following object(s) are masked from package:faraway : # # melanoma # #Loading required package: grid #Loading required package: multcomp #Loading required package: mvtnorm # #Attaching package: 'HH' # # # The following object(s) are masked from package:alr3 : # # residual.plots # # # The following object(s) are masked from package:faraway : # # vif, # vif.default, # vif.lm # out <- tukey.nonadd.test(ov.lm) ######### # RUN 2 OK # RUN 3 ######### require(crossdes) #Loading required package: crossdes #Loading required package: AlgDesign #Loading required package: gtools # #Attaching package: 'gtools' # # # The following object(s) are masked from package:faraway : # # logit # #Loading required package: MASS #Loading required package: grDevices out <- tukey.nonadd.test(ov.lm) #Error in parse(text = x) : # unexpected symbol in "yield ~ variety + block + preds(yield+variety +block+preds.sq)sq" ######### # RUN 3 FAILS #########
######### # CHECKING FOR INTERACTION AMONG PACKAGES ######### require(MASS) #Loading required package: MASS #Loading required package: grDevices out <- tukey.nonadd.test(ov.lm) require(gtools) #Loading required package: gtools # #Attaching package: 'gtools' # # # The following object(s) are masked from package:faraway : # # logit # # out <- tukey.nonadd.test(ov.lm) ######### # alr3 pays well with MASS, grDevices, gtools ######### require(AlgDesign) #Loading required package: AlgDesign out <- tukey.nonadd.test(ov.lm) #Error in parse(text = x) : # unexpected symbol in "yield ~ variety + block + preds(yield+variety +block+preds.sq)sq" require(crossdes) #Loading required package: crossdes out <- tukey.nonadd.test(ov.lm) #Error in parse(text = x) : # unexpected symbol in "yield ~ variety + block + preds(yield+variety +block+preds.sq)sq" ######### # BAD INTERACTION BETWEEN alr3 and AlgDesign ######### What now? _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400 Charlottesville, VA 22904-4400 Parcels: Room 102 Gilmer Hall McCormick Road Charlottesville, VA 22903 Office: B011 +1-434-982-4729 Lab: B019 +1-434-982-4751 Fax: +1-434-982-4766 WWW: http://www.people.virginia.edu/~mk9y/ ______________________________________________ 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.