From michael.weylandt at gmail.com  Mon Jul 30 21:13:16 2012
From: michael.weylandt at gmail.com (R. Michael Weylandt)
Date: Mon, 30 Jul 2012 14:13:16 -0500
Subject: [Rd] [BUG?] utils::prompt(name=f)
In-Reply-To: <2AEDBAEB-8185-45E9-AE2A-61CDD962332D@comcast.net>
References: <2AEDBAEB-8185-45E9-AE2A-61CDD962332D@comcast.net>
Message-ID: <CAAmySGN6ms8PGt5mzrw+Cmspf93w1kq0pc=2_YeoMSoXcqR6Jw@mail.gmail.com>

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



[Rd] [BUG?] utils::prompt(name=f)
R. Michael Weylandt