[Rd] Typo in R-devel assign.Rd

Marc Schwartz (via MN) mschwartz at mn.rr.com
Thu Apr 20 20:47:51 CEST 2006


Hi all,

I had mentioned this as a PS in a recent prior post on r-help on the use
of assign(), but presumably it got buried in the noise.

There is a typo in the R-patched and R-devel versions of assign.Rd in
the first example comments.

It is presently:

#-- Create objects  'r1', 'r2', ... 'r6' --

Note the line where paste() is used in the example is:

  nam <- paste("r",i, sep=".")  # Note 'sep'


Hence, the comment should be:

  #-- Create objects  'r.1', 'r.2', ... 'r.6' --

I have attached a text file containing the patch against today's r-devel
tarball version of assign.Rd.

HTH,

Marc Schwartz

-------------- next part --------------
--- assign.Rd	2006-04-09 17:19:28.000000000 -0500
+++ assign.patched.Rd	2006-04-20 13:35:15.000000000 -0500
@@ -62,7 +62,7 @@
   \code{\link{environment}}.
 }
 \examples{
-for(i in 1:6) { #-- Create objects  'r1', 'r2', ... 'r6' --
+for(i in 1:6) { #-- Create objects  'r.1', 'r.2', ... 'r.6' --
  nam <- paste("r",i, sep=".")
  assign(nam, 1:i)
 }


More information about the R-devel mailing list