Skip to content

Code-breaking change: Replacement of implicit print() in @examples by a call to data() in .Rd #1885

@aphalo

Description

@aphalo

Newly seen in version 8.0.0 and reproducible with current 8.0.0.9000. Data set documentation with an implicit call to print() under @examples, i.e., just the <object name> is replaced by a call to data(<object name>) in the generated .Rd file. In a package configured with LazyLoad this generates one warning for each call to data(<object name>) from R check, locally and in Winbuilder. This can be surprising and confusing, as the warnings are triggered on the first time the documentation is regenerated after updating to 'roxygen2' to version 8.0.0. I do not see this change mentioned in the NEWS or in updated documentation.

Is there a way of disabling this behaviour for data set documentation other than replacing all implicit print() calls by explicit ones?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions