[R] Clash between alr3 and AlgDesign. (Was: Re: Second & subsequent calls to function fails. Please help debug.)

From: Michael Kubovy <kubovy_at_virginia.edu>
Date: Sun, 30 Mar 2008 08:43:14 -0400

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_at_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. Received on Sun 30 Mar 2008 - 12:49:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 30 Mar 2008 - 14:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive