Skip to content
Prev 7189 / 63424 Next

assign, documentation (PR#1434)

ripley@stats.ox.ac.uk writes:
Actually, it *is* a name that is getting quoted, it just has these weird
bracket characters in it, so it is not "syntactically valid". 

One improvement might be: "the name can be any string of text and may
be quoted, but this is only necessary if it is not a syntactically
valid name."

We might also emphasize that "assignment operator expressions" does
not include assign(), only <-, <<-, and =. (And _ until we finally get
it killed...). On the other hand it is arguably clear enough already,
if read carefully. (For this reason alone, the posters remark is off
base, but he might have asked about "a[1]" <- 2.)

In assign(), `x' must be a character object. As in
[1] "b"
[1] 2