This works in 0.65.1 but not in 0.90.0.
> form <- ~ a | b
> form[[2]][[3]] <- as.name("u")
Error: Object "u" not found
I can get around this as follows
> form.1 <- form[[2]]
> form.1[[3]] <- as.name("u")
> form[[2]] <- form.1
> form
~a | u
--please do not edit the information below--
Version:
platform = i686-unknown-linux
arch = i686
os = linux
system = i686, linux
status = Under development (unstable)
major = 0
minor = 90.0
year = 1999
month = October
day = 28
language = R
Search Path:
.GlobalEnv, Autoloads, package:base
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._