From mschwartz at mn.rr.com  Thu Apr 20 20:47:51 2006
From: mschwartz at mn.rr.com (Marc Schwartz (via MN))
Date: Thu, 20 Apr 2006 13:47:51 -0500
Subject: [Rd] Typo in R-devel assign.Rd
Message-ID: <1145558872.4876.76.camel@localhost.localdomain>

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)
 }


[Rd] Typo in R-devel assign.Rd
Marc Schwartz (via MN