I want to find the instruction of a function of a R package, so I run help('pkg::name'). But I got the message saying 'no document for that'. I retried ??pkg:name and it returned a very short instruction. When it came to ?pkg:name, the full instructions showed up.
What are the differences between ? and ?? and help()?
You can read the help for "?":
> ?"?"
and the help for "??":
> ?"??"
in short, "?" finds the help for a single existing item, and "??" searches the help for some text. So "??random" searches for "random", and "?random" tries to find something called "random" (which doesn't exist so I get a message).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With