the ? or ?? help on plyr

34 views
Skip to first unread message

Luis Belmar-Letelier

unread,
Aug 17, 2012, 6:18:12 AM8/17/12
to manip...@googlegroups.com
Hello,

I can't get the the ? or ?? help on the package, did I miss something ?

> library(plyr)
> ??plyr
No vignettes or demos or help files found with alias or concept or
title matching ‘plyr’ using regular expression matching.
> ?plyr
No documentation for ‘plyr’ in specified packages and libraries:
you could try ‘??plyr’



Ista Zahn

unread,
Aug 17, 2012, 9:19:46 AM8/17/12
to Luis Belmar-Letelier, manip...@googlegroups.com
Hi Luis,

help("?") will tell you that the usage is

?topic

and that topic is "Usually, a name or character string specifying the
topic for which help is sought."

Since there is no plyr topic or function, you don't get any results from ?plyr.

You can use

help(package="plyr")

to get the package documentation.

Best,
Ista

Alternatively, a function call to ask for documentation on a
corresponding S4 method: see the section on S4 method documentation.
The calls pkg::topic and pkg:::topic are treated specially, and look
for help on topic in package pkg.
> --
> You received this message because you are subscribed to the Google Groups
> "manipulatr" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/manipulatr/-/xlQRCEdaX_MJ.
> To post to this group, send email to manip...@googlegroups.com.
> To unsubscribe from this group, send email to
> manipulatr+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/manipulatr?hl=en.

Timothy Bates

unread,
Aug 19, 2012, 6:05:28 PM8/19/12
to manip...@googlegroups.com
For my money, Luis is spot on: It is the most obvious thing to do after
install.packages(newPackage); require(newPackage); # is
?newPackage

Getting the response "No documentation for ‘plyr’ in specified packages and libraries" explains a lot about why people need so much effortful human help using R. It should probably say

No documentation for a function called plyr. As I see this is a package, you might try help(package="plyr")

That would be helpful. Explanations that R doesn't have to help this way or that there is an additional function you can bother a list of people to discover, then remember for the times you need it once every two months are part of what is wrong with R IMHO.

Error messages should trap errors and return helpful solutions

best, tim

Winston Chang

unread,
Aug 19, 2012, 6:08:53 PM8/19/12
to Timothy Bates, manip...@googlegroups.com
For what it's worth, I opened a pull request a few weeks ago that
includes package documentation for plyr.

https://github.com/hadley/plyr/pull/90

-Winston
> --
> You received this message because you are subscribed to the Google Groups "manipulatr" group.

Timothy Bates

unread,
Aug 19, 2012, 7:11:22 PM8/19/12
to manip...@googlegroups.com

David Winsemius

unread,
Aug 20, 2012, 12:24:42 AM8/20/12
to Luis Belmar-Letelier, manip...@googlegroups.com
This confuses me. The standard method to get help() to display an
index of functions and DESCRIPTION file and Package NEWS for a
package is:

help(package=plyr)

... and it seems that plyr conforms to that convention. Why are you
asking that plyr be packaged differently than any other package?

--
David.
> --
> You received this message because you are subscribed to the Google
> Groups "manipulatr" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/manipulatr/-/xlQRCEdaX_MJ
> .
> To post to this group, send email to manip...@googlegroups.com.
> To unsubscribe from this group, send email to manipulatr+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/manipulatr?hl=en
> .

David Winsemius, MD
Alameda, CA, USA

Brandon Hurr

unread,
Aug 20, 2012, 3:20:35 AM8/20/12
to David Winsemius, Luis Belmar-Letelier, manip...@googlegroups.com
Perhaps the convention isn't really the most straightforward/user-friendly approach? 

I often find myself using ?newPackage when I forget the name/spelling/usage of a function in a package, but know which package its in. It often works, and I think it should. 

Why shouldn't it? 
 

On Mon, Aug 20, 2012 at 5:24 AM, David Winsemius <dwins...@comcast.net> wrote:
This confuses me. The standard method to get help() to display an index of functions and  DESCRIPTION file and  Package NEWS for a package is:

help(package=plyr)

... and it seems that plyr conforms to that convention. Why are you asking that plyr be packaged differently than any other package?

--
David.



On Aug 17, 2012, at 3:18 AM, Luis Belmar-Letelier wrote:

Hello,

I can't get the the ? or ?? help on the package, did I miss something ?

> library(plyr)
> ??plyr
No vignettes or demos or help files found with alias or concept or
title matching ‘plyr’ using regular expression matching.
> ?plyr
No documentation for ‘plyr’ in specified packages and libraries:
you could try ‘??plyr’




--
You received this message because you are subscribed to the Google Groups "manipulatr" group.
To view this discussion on the web visit https://groups.google.com/d/msg/manipulatr/-/xlQRCEdaX_MJ.
To post to this group, send email to manip...@googlegroups.com.
To unsubscribe from this group, send email to manipulatr+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/manipulatr?hl=en.
David Winsemius, MD
Alameda, CA, USA
--
You received this message because you are subscribed to the Google Groups "manipulatr" group.
To post to this group, send email to manip...@googlegroups.com.
To unsubscribe from this group, send email to manipulatr+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages