Skip to content

forcats %in% does not link #1728

@math-mcshane

Description

@math-mcshane

Hello from tidy dev day 2025,

After running

usethis::create_from_github("tidyverse/forcats")
devtools::document()

I got the following message:

Updating forcats documentationSetting RoxygenNote to "7.3.3"Loading forcatsmatch.R:3: @description Could not resolve link to topic "\\%in\\%" in the dependencies or base
  packages.If you haven't documented "\\%in\\%" yet, or just changed its name, this is normal. Once "\\%in\\%"
  is documented, this warning goes away.
ℹ Make sure that the name of the topic is spelled correctly.
ℹ Always list the linked package as a dependency.
ℹ Alternatively, you can fully qualify the link with a package name.
Writing forcats-package.Rd

Examining match.R, @hadley noted that it appeared that roxygen2 did not link %in% and to leave this issue here.

#' Test for presence of levels in a factor
#'
#' Do any of `lvls` occur in `f`? Compared to [%in%], this function validates
#' `lvls` to ensure that they're actually present in `f`. In other words,
#' `x %in% "not present"` will return `FALSE`, but `fct_match(x, "not present")`
#' will throw an error.

Or here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions