Re: Can't find documentation for function

Haris Fawad via ESS-help <[email protected]> Mon, 19 Sep 2022 10:46:21 +0200
Newsgroups gmane.emacs.ess.general
Message-ID <CANu5Neae7PENSnOeGwvX3L9UEC37fEUtT1tS0Rs9aV5KFBG36w@mail.gmail.com>
Hi Marc,

Yes, I load the package via devtools::load_all() before typing ?foo. When I
do the same in the R GUI-app I get the expected behaviour: the
documentation gets rendered and shown as an html file in the browser.

Best,
Haris

On Sun, Sep 18, 2022 at 7:29 PM Marc Schwartz <[email protected]> wrote:

> 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
>
>

	[[alternative HTML version deleted]]

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