Skip to content

Chokes on inline R functions contained in roxygen2 code #135

@mnneely

Description

@mnneely

I have a number of functions documented with roxygen2 like this to reuse documentation:

@param xxx `r template("xxx")`

While the roxygen2 documentation says this method is superseded in favor of @inheritParams, I don't like this method because it is less explicit about what is being reused.

Unfortunately, attachment::att_amend_desc() chokes on this. Even though the template() function is exported and in NAMESPACE, the function returns something this for every single instance of template():

Quitting from :1-1
✖ [PM_valid.R:1327](vscode-file://vscode-app/Applications/Positron.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html#): @param failed to evaluate inline markdown code.
Caused by error in `map_chr()`:
ℹ In index: 1.
Caused by error in `template()`:
! could not find function "template"

It does seem to finish, but I have no idea if it would be doing more giving all the messages about Quitting...

Metadata

Metadata

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