Skip to content

NAMESPACE does not contain imports for RcppProgress #1244

@elcortegano

Description

@elcortegano

When the package I'm developing is built, a NOTE is returned for some OS (e.g. fedora-gcc-devel) indicating that:

Namespace in Imports field not imported from: ‘RcppProgress’
All declared Imports should be used.

Just recently I found out testing with rhub::check(platform = "fedora-gcc-devel") that this can be fixed simply by including import(RcppProgress) in the NAMESPACE. However, this is a NAMESPACE file generated with devtools::document() (a wrapper of roxygen2::roxygenize()), and it is meant to not be modified by hand.

This makes my wonder why RcppProgress was not included automatically in the NAMESPACE. Is this a bug?

Calls to RcppProgress in the package are not made in .R files, buy .cpp files, e.g.

// [[Rcpp::depends(RcppProgress)]]
#include <progress.hpp>
#include <progress_bar.hpp>
type my_function (args) {
    ...
}

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