Skip to content

Storing a Node object in another package as data produces a warning when lazy loading of data is used #173

Description

@jranke

When enabling lazy loading of data in a package that contains a Node object, we get a warning in the package check.

* checking whether package ‘data.tree.in.package’ can be installed ... WARNING
Found the following significant warnings:
  Warning in (function ()  : 'Node$fields' is deprecated.
  Warning in (function ()  : 'Node$fieldsAll' is deprecated.
See ‘$HOME/projects/data.tree.in.package/data.tree.in.package.Rcheck/00install.out’ for details.

Apparently, Node$fields and Node$fieldsAll are called under these circumstances.

This is related to the deprecation of these methods and has already been discussed elsewhere [1], but there is no open issue in this package currently. I have created an example package that passes R CMD check without warnings before switching on lazy loading of data, but produces the warning after that [2].

[1] ncss-tech/interpretation-engine#3
[2] jranke/data.tree.in.package@b8c7a81

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions