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.
cd r-oxbow/src/rust
cargo build
This works fine. Detects the oxbow
in the directory above and installs it fine.
remotes::install_local("r-oxbow")
Generates this output:
ββ R CMD build βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β checking for file β/tmp/RtmpjHZ4Kt/file34ed022cec682/r-oxbow/DESCRIPTIONβ ...
β preparing βoxbowβ: (2.1s)
β checking DESCRIPTION meta-information ...
β cleaning src
β checking for LF line-endings in source and make files and shell scripts (425ms)
β checking for empty or unneeded directories
β building βoxbow_0.0.0.9000.tar.gzβ
* installing *source* package βoxbowβ ...
** using staged installation
** libs
using C compiler: βgcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0β
rm -Rf oxbow.so ./rust/target/release/liboxbow.a entrypoint.o
gcc -I"/rmflight_stuff/software/R-4.3.0/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -c entrypoint.c -o entrypoint.o
# In some environments, ~/.cargo/bin might not be included in PATH, so we need
# to set it here to ensure cargo can be invoked. It is appended to PATH and
# therefore is only used if cargo is absent from the user's PATH.
if [ "" != "true" ]; then \
export CARGO_HOME=/tmp/RtmpxvOvG8/R.INSTALL34f23e7aef79/oxbow/src/.cargo; \
fi && \
export PATH="/opt/TinyTeX/bin/x86_64-linux/:/opt/TinyTeX/bin/x86_64-linux/:/home/rmflight/.cargo/bin:/home/rmflight/anaconda3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/rmflight/.local/bin:/home/rmflight/bin:/bin/java/:/software/julia-1.0.5/bin:/home/rmflight/.cargo/bin:/opt/TinyTeX/bin/x86_64-linux/:/home/rmflight/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/rmflight/.cargo/bin" && \
cargo build --lib --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target
error: failed to get `oxbow` as a dependency of package `r-oxbow v0.1.0 (/tmp/RtmpxvOvG8/R.INSTALL34f23e7aef79/oxbow/src/rust)`
Caused by:
failed to load source for dependency `oxbow`
Caused by:
Unable to update /tmp/RtmpxvOvG8/R.INSTALL34f23e7aef79/oxbow
Caused by:
failed to read `/tmp/RtmpxvOvG8/R.INSTALL34f23e7aef79/oxbow/Cargo.toml`
Caused by:
No such file or directory (os error 2)
make: *** [Makevars:16: rust/target/release/liboxbow.a] Error 101
ERROR: compilation failed for package βoxbowβ
* removing β/rmflight_stuff/software/R-4.3.0/library/oxbowβ
Warning message:
In i.p(...) :
installation of package β/tmp/RtmpjHZ4Kt/file34ed0a9f21f9/oxbow_0.0.0.9000.tar.gzβ had non-zero exit status
Same error if I use:
remotes::install_github("abdenlab/oxbow", subdir="r-oxbow")