[Rd] [BUG?] utils::prompt(name=f)

R. Michael Weylandt michael.weylandt at gmail.com
Mon Jul 30 21:13:16 CEST 2012


Just for the record, I don't see that error with 2.15.0 or with
R-Devel 60040-someodd. Both display

> foo <- function(x) cat(x, "\n")
> prompt(name = "foo")
Created file named ‘foo.Rd’.
Edit the file and move it to the appropriate directory.

Best,
Michael

On Sun, Jul 29, 2012 at 12:17 PM, Paul Roebuck <paul_roebuck at comcast.net> wrote:
>> ?prompt
> [SNIP]
>     ## Create a help file for each function in the .GlobalEnv:
>     for(f in ls()) if(is.function(get(f))) prompt(name = f)
>
>> foo <- function(x) { cat(x, '\n')}
>> prompt(name="foo")
> Error in utils:::prompt(object, filename = filename, name = name, ...) :
>   argument "object" is missing, with no default
>> version
> platform       x86_64-apple-darwin9.8.0
> arch           x86_64
> os             darwin9.8.0
> system         x86_64, darwin9.8.0
> status         Patched
> major          2
> minor          15.1
> year           2012
> month          07
> day            05
> svn rev        59734
> language       R
> version.string R version 2.15.1 Patched (2012-07-05 r59734)
> nickname       Roasted Marshmallows
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list