Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated r-oxbow's dependencies #66

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

CGMossa
Copy link

@CGMossa CGMossa commented Jun 30, 2024

No description provided.

@CGMossa
Copy link
Author

CGMossa commented Jun 30, 2024

Hallo! Out of curiosity, I was looking at this package (r-oxbow) use of extendr. I ran cargo update and then had to fix these things in lib.rs. But the extendr-fn gave this error:

error[E0277]: the trait bound `extendr_api::Robj: From<Vec<(u64, u16)>>` is not satisfied
  --> src/lib.rs:76:1
   |
76 | #[extendr]
   | ^^^^^^^^^^ the trait `From<Vec<(u64, u16)>>` is not implemented for `extendr_api::Robj`
   |
   = help: the following other types implement trait `From<T>`:
             <extendr_api::Robj as From<&'a [T; N]>>
             <extendr_api::Robj as From<&'a [T]>>
             <extendr_api::Robj as From<&'a mut [T; N]>>
             <extendr_api::Robj as From<&Altrep>>
             <extendr_api::Robj as From<&Primitive>>
             <extendr_api::Robj as From<&Vec<T>>>
             <extendr_api::Robj as From<&extendr_api::Complexes>>
             <extendr_api::Robj as From<&extendr_api::Doubles>>
           and 53 others
   = note: this error originates in the attribute macro `extendr` (in Nightly builds, run with -Z macro-backtrace for more info)

That's because it wants to turn Vec<(u64, u16)> to an Robj. I cannot imagine this was ever possible to do. If this is strictly necessary to do, I'd like to hear how it was possible before, and stuff like that if at all possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant