[Rd] documentation bug in grep (PR#692)

Prof Brian D Ripley ripley@stats.ox.ac.uk
Wed, 11 Oct 2000 21:14:39 +0100 (BST)


On Wed, 11 Oct 2000 pperkins@ucsd.edu wrote:

> Full_Name: Peter Perkins
> Version: 1.1.1
> OS: LinuxPPC
> Submission from: (NULL) (24.4.89.36)
> 
> 
> the man page for grep mistakenly says "gsub" whn it should say "grep"
> in the Details section of grep.Rd.  a diff -u with a corrected version

It's in the Value section!  Thank you, fixed now.

> follows:
> 
> diff -u R-1.1.1/src/library/base/man/grep.Rd grep.Rd-new
> --- R-1.1.1/src/library/base/man/grep.Rd	Wed Apr 19 08:51:19 2000
> +++ grep.Rd-new	Wed Oct 11 10:16:43 2000
> @@ -46,7 +46,7 @@
>    \code{extended} argument.
>  }
>  \value{
> -    For \code{gsub} a vector giving either the indices of the elements
> +    For \code{grep} a vector giving either the indices of the elements
>      of \code{x} that yielded a match or, if \code{value} is \code{TRUE},
>      the matched elements.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._