Re: Can't find documentation for function

Marc Schwartz via ESS-help <[email protected]> Sun, 18 Sep 2022 13:29:47 -0400
Newsgroups gmane.emacs.ess.general
Message-ID <[email protected]>
Hi,

Did you type:

  library(mypac)

first, before trying ?foo?

The behavior suggests that the package is not currently loaded in the search path, hence the error.

When you use ?mypac::foo, that explicitly tells R that you want the help for the function which is located in mypac and looks for the file there. Without the package prefix, it only looks in the current search path, and thus does not find the package there.

Regards,

Marc Schwartz


On September 18, 2022 at 4:54:05 AM, Haris Fawad via ESS-help ([email protected] (mailto:[email protected])) wrote:

> Hi,
>
> I get the following error when I try to open the help file on a function
> 'mypac::foo'.
>
> "ess-r-help--build-help-command--unqualified: Can’t find documentation for
> ‘foo’".
>
> I get the error when I type '?foo', but not when I type '?mypac::foo'.
> Indeed, the file 'man/foo.Rd' exists, after I run 'devtools::document()'.
>
> I don't get the error when I request documentation for a standard
> R-function, such as '?sum'.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help