Skip to content

Inability to run graph_viz when package uses Rcpp #343

@kellijohnson-NOAA

Description

@kellijohnson-NOAA

I am trying to use {pkgnet} on a package called FIMS that uses Rcpp to link to C++ in combination with typical R functions. I am getting the following error message when I run pkgnet::CreatePackageReport(pkg_name = "FIMS")

Error in as.vector(x, "list") :
  cannot coerce type 'externalptr' to vector of type 'list'

The html output is still created but the visualization of the functions do not render. I am wondering if there is a workaround that you know of to get around this and potentially give a figure of just the R functions or perhaps you can point me to the relevant pieces of code that I could help augment to accommodate packages with Rcpp code in them. I am familiar with S4 classes but your package uses R6, which I am less familiar with. Thank you for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions