Closed daniellga closed 2 years ago
I think you need to put extendr_module!{}
in each module you are trying to export.
As a side note, I'd suggest to have a single module exposing Rust API to R rather than scatter exported function over multiple files.
I think you need to put
extendr_module!{}
in each module you are trying to export. As a side note, I'd suggest to have a single module exposing Rust API to R rather than scatter exported function over multiple files.
This doesn't work. It gives an error like
Objects listed as exports, but not present in namespace:
I have the
rust/src
where the lib.rs and core.rs are put together. I would like to use functions from core.rs inextendr_module!
, located in lib.rs. Is it possible to do without too much overhead?lib.rs:
core.rs:
The error is showed on lib.rs, in
fn load
: