Skip to content

Error when calling sourced cpp11 function after multiple cpp_source calls #202

Closed
@sbearrows

Description

@sbearrows
cpp11::cpp_source("xyz.cpp")
> boo()
#> [1] 10
> cpp11::cpp_source("xyz.cpp")
> boo()
#> Error in .Call("_xyz_2_boo", PACKAGE = "xyz_2") : 
  "_xyz_2_boo" not available for .Call() for package "xyz_2"

This is likely due to our changes to the temp file names. We will have to re-evaluate how we are handling temporary file names.

Restarting the R session removes this error.

Metadata

Metadata

Assignees

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