Closed rmflight closed 1 year ago
Thanks for opening the issue! I was able to reproduce on my machine. It seems remotes::install_*
is having an issue resolving the oxbow
dependency (our "core" rust crate oxbow/Cargo.toml
) in the r-oxbow/src/rust/Cargo.toml
.
My guess is that the isolated environment it creates to build the package does not copy the source code from outside the R project root. I will look into how to link the dependencies correctly for remotes::
.
In the mean time, since you have the repo cloned locally, you should be able to test out oxbow with:
cd r-oxbow
rextendr::document()
devtools::load_all(".")
library(oxbow)
More information can be found in the rextendr
docs.
Found a similar issue,
but the current answer is rather unsatisfactory (move all the rust code into R project). I guess we could change the r-oxbow/src/rust/Cargo.toml
to use the published version of the oxbow
crate, but that kind of defeats the purpose of the mono repo. Will still try to test out some alternative solutions.
I definitely want to make it a priority that folks can try out the R oxbow package with remotes
or devtools
.
This has been documented in #9 until we have a more satisfactory solution.
@rmflight it should work now. If you give it another try and still run into problems, please re-open.
It installs now!
R-Version: 4.3.0 OS: Pos!OS (Ubuntu variant) rust-Version: rustc 1.69.0 (84c898d65 2023-04-16)
I've cloned the repo to make sure I can build the local r-oxbow.
This works fine. Detects the
oxbow
in the directory above and installs it fine.Generates this output:
Same error if I use: