How to specify a package when searching for a help manual page for a function?

How to search for a help man page for a function and specify a package in R? For example, count appears in both seqinr and plyr. If I want to see the score in plyr, which team? I tried a few obvious (but incorrect) guesses, such as "? Plyr :: count"

EDIT: When am I doing? Count, I get the following message:

Help on topic 'count' was found in the following packages: Package Library plyr /Library/Frameworks/R.framework/Versions/2.15/Resources/library seqinr /Library/Frameworks/R.framework/Versions/2.15/Resources/library 

When do i do? plyr :: count, I get:

 No documentation for 'plyr::count' in specified packages and libraries: you could try '??plyr::count' 

When do i do? plyr: count, I get:

 No documentation for 'plyr:::count' in specified packages and libraries: you could try '??plyr:::count' 

Adding two question marks also does not cause errors in the documentation. Finding help on explicit functions works fine (for example, "plot")

This is with R 2.15.0 on OSX running in emacs + ESS.

+6
source share
3 answers

Use the package= argument to help :

 help("count", package="plyr") 
+6
source

The correct way to do this is:

 ?plyr::count ?plyr:::count 

See ?"?" For more details. - Both examples are shown.

Both work for me with downloaded packages and even without downloading a package. This begs the question, are packages installed?

+4
source

You were close, you need three: :::

 ?seqinr:::count # for seqinr ?plyr:::count # for plyr 
+3
source

Source: https://habr.com/ru/post/914379/


All Articles