[Rd] Typos in language manual
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Sat Dec 6 17:46:05 CET 2025
In section "3.4.4 Subset assignment", the manual says this:
> Complex assignments in the enclosing environment (using <<-) are also permitted:
>
> names(x)[3] <<- "Three"
> is equivalent to
>
> `*tmp*` <<- get(x, envir=parent.env(), inherits=TRUE)
> names(`*tmp*`)[3] <- "Three"
> x <<- `*tmp*`
> rm(`*tmp*`)
I think there are two typos here in the first line. I'm pretty sure
that it should read
`*tmp*` <- get("x", envir=parent.env(), inherits=TRUE)
i.e. regular assignment, and quoted variable name.
Duncan Murdoch
More information about the R-devel
mailing list