Skip to content

unexpected missing links in documentation object #973

@IndrajeetPatil

Description

@IndrajeetPatil

In some functions in my package, I am inheriting arguments from lme4::lmer and lme4::glmer-

#' @inheritDotParams lme4::lmer

This works without any issue:
Source: https://indrajeetpatil.github.io/groupedstats/reference/grouped_lmer.html#arguments

image

But it is producing a WARNING in my R CMD CHECK-

> checking Rd cross-references ... WARNING
 
  Missing link or links in documentation object 'grouped_lmer.Rd':
    '[lme4]{list}' '[lme4]{offset}' '[lme4]{model.offset}'
  
  See section 'Cross-references' in the 'Writing R Extensions' manual.

This is not supposed to happen because this is not a reference in code, but in the documentation.

As @bbolker pointed out, this might be a roxygen2 buglet?
(specifically, here:

roxygen2/R/rd-inherit.R

Lines 188 to 190 in e016a70

src <- inheritors$source
dest <- ifelse(has_colons(src), gsub("::", ":", src), paste0("=", src))
from <- paste0("\\code{\\link[", dest, "]{", src, "}}", collapse = ", ")
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorrd ✍️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions