[R-pkg-devel] File link does not exist : how to get the correct one?

Martin Maechler m@echler @ending from @t@t@m@th@ethz@ch
Fri May 18 20:01:50 CEST 2018


>>>>> Duncan Murdoch 
>>>>>     on Fri, 18 May 2018 11:42:53 -0400 writes:

    > On 18/05/2018 11:37 AM, Duncan Murdoch wrote:
    >> On 18/05/2018 11:29 AM, Duncan Murdoch wrote:
    >>> On 18/05/2018 11:06 AM, Joris Meys wrote:
    >>>> Hi all,
    >>>> 
    >>>> The latest changes in R cause a lot of Rd warnings about file links that
    >>>> don't exist and are treated as a topic. One example is
    >>>> 
    >>>> \code{\link[stats]{fitted}}
    >>>> 
    >>>> Now if I look at ?fitted , the name of the page (top left corner) is given
    >>>> as "fitted". So I would expect that the code above should just work fine,
    >>>> but it generates the warning.
    >>>> 
    >>>> How can one get these names without having to browse through the directory
    >>>> with html files?
    >>> 
    >>> You could ask for HTML help on fitted, but don't use the class print method:
    >> 
    >> Sorry, forgot to edit that out:  it doesn't need to be HTML help, any
    >> format would do.

    > And this should be my last message on the topic:  a nicer solution is 
    > simply to use basename():

    >> basename(?fitted)
    > [1] "fitted.values"

    > Duncan Murdoch

Wow ... Awesome!

I had no idea about such an elegant a solution to this
problem...

Martin



More information about the R-package-devel mailing list