[Rd] Typos in language manual

Kurt Hornik Kurt@Horn|k @end|ng |rom wu@@c@@t
Mon Dec 8 20:00:25 CET 2025


>>>>> Duncan Murdoch writes:

Thanks, fixed now.

Best
-k

> 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

> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list