Skip to content

massive slowdown in 7.3.3 #1724

@mcol

Description

@mcol

I've upgraded roxygen2 to 7.3.3 and running roxygen2::roxygenise() on the Luminescence package (https://github.com/R-Lum/Luminescence) went from 20 seconds to several minutes. At times (strangely enough, not always) I get tons of messages like this:

✖ Luminescence-generics.R:4: @description Could not resolve link to topic
  "RLum.Data-class" in the dependencies or base packages.
ℹ If you haven't documented "RLum.Data-class" yet, or just changed its name,
  this is normal. Once "RLum.Data-class" 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.

I think I may be getting one such message for each link to any class or function defined in the package.

This may be similar to what is reported in #1720, but the analysis there doesn't seem to help in my case.

I've run a bisection, and it points to #1633. Indeed, commenting out the call to resolve_link_package() linked below removes the slowdown:

if (is.na(pkg)) pkg <- resolve_link_package(obj, thispkg, state = state)

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