Comments (3)
I have received an E-mail about this.
Err, we see this still downloads. So you haven't followed the advice given by Professor Ripley. Let me cite again:
"... we ask that you use the 'cargo vendor' mechanism to avoid downloading during installation and limit the number of CPUs 'cargo build' can use during installation. Both points are covered in https://cran.r-project.org/web/packages/using_rust.html .
Please correct before 2023-08-19 to safely retain your package on CRAN... "
So this has been archived again.
When offline
** using staged installation
** libs
...
cargo build --lib --release --manifest-path=./rust/Cargo.toml --target-dir ./rust/target
Updating crates.io index
warning: spurious network error (3 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
warning: spurious network error (1 tries rema iining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)or online
Updating crates.io index
Downloading crates ...
Downloaded anstyle v1.0.2
Downloaded colorchoice v1.0.0
...And its Cargo.lock is full of things like
[[package]]
name = "addr2line"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb"
dependencies = [
"gimli",
]Please follow the CRAN policies and the Rust documentation linked from there, see the URL cited above.
You may submit a poackage with more than 5MB according to that documentation. If the check results or a team member complains, please mention you have included rust sources.Please fix and resubmit.
Perhaps I need to try again submitting a 12MB package.
from prqlc-r.
Hmm.. Is this a hint? In a .cargo/config.toml
file you can have:
[net]
retry = 3 # network retries
git-fetch-with-cli = true # use the `git` executable for git operations
offline = true # do not access the network
Specifically choose offline = true
as it may not be default at the moment.
Source: The Cargo Book: Configuration
from prqlc-r.
Hi @CGMossa, thanks for checking that.
I did not vendoring Rust dependencies to prqlr 0.5.1 on CRAN, as described here.
So downloading from crates.io was a must, but it did not seem allowed.
from prqlc-r.
Related Issues (20)
- Fix compile error on Windows with Rust 1.70
- color code handlling in errors
- Update for "Using Rust in CRAN packages" HOT 2
- Docs about vendoring HOT 1
- Package ‘prqlr’ was removed from the CRAN repository. Archived on 2023-08-19 for policy violation. HOT 1
- CRAN acceptable inst/AUTHORS format HOT 2
- Updates for knitr 1.44
- Installation issue on Windows HOT 1
- CI: cache Rust
- CI: upload binary artifacts
- Rust lib binary release
- manual entry for prqlr HOT 1
- pre-built binaries shoud be built with R 4.2? HOT 1
- Support arm64 cross-compile on R-universe
- Rename the package and transfar the repo HOT 9
- Follow up tasks for #252
- build fails on nightly (or wasm target only?) HOT 2
- Build failuar on CRAN Windows builder HOT 4
- WASM build check in CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prqlc-r.