Skip to content

New rd_section_minidesc error with roxygen2 7.2.1 #1421

@mjsteinbaugh

Description

@mjsteinbaugh

With the roxygen2 7.2.1 update, I'm now seeing this error in one of my packages, and I'm having trouble locating the source:

Error in rd_section_minidesc(name = object_name(block$object), desc = tag$val$description,  :
  is_string(name) is not TRUE
Calls: <Anonymous> ... <Anonymous> -> inherits -> rd_section_minidesc -> stopifnot
Backtrace:
     ▆
  1. └─devtools::document()
  2.   └─roxygen2::roxygenise(pkg$path, roclets)
  3.     └─base::lapply(...)
  4.       ├─roxygen2 (local) FUN(X[[i]], ...)
  5.       └─roxygen2:::roclet_process.roclet_rd(X[[i]], ...)
  6.         ├─roxygen2:::block_to_rd(block, base_path, env)
  7.         └─roxygen2:::block_to_rd.roxy_block(block, base_path, env)
  8.           └─roxygen2:::topic_add_describe_in(rd, block, env)
  9.             ├─topic$add(...)
 10.             │ └─base::inherits(x, "RoxyTopic")
 11.             └─roxygen2:::rd_section_minidesc(...)
 12.               └─base::stopifnot(is_string(name))

Any ideas on how to improve the stack trace here? Would it be possible to modify the error handling to return which file is problematic?

Best,
Mike

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorrd ✍️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions