-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from albersonmiranda/dev
chore: Update R package build configuration and install necessary packages
- Loading branch information
Showing
19 changed files
with
230 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
inst/doc | ||
docs | ||
revdep/ | ||
src/vendor | ||
src/rust/vendor | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rust-analyzer.linkedProjects": [ | ||
"${workspaceFolder}/src/rust/Cargo.toml" | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
: "${R_HOME=`R RHOME`}" | ||
"${R_HOME}/bin/Rscript" tools/msrv.R | ||
"${R_HOME}/bin/Rscript" tools/msrv.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env sh | ||
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" tools/msrv.R | ||
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" tools/msrv.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
## Third ressubmission | ||
|
||
In this version I have: | ||
## R CMD check results | ||
|
||
* Updated `import_iom()` example so it does not require `dontrun` nor `donttest` tag. | ||
* Added missing `return` tag to `iom` class (previously only on methods). | ||
0 errors | 0 warnings | 1 notes | ||
|
||
## Second Ressubmission | ||
* NOTE: | ||
- installed size is 8.2Mb due to vendored Rust dependencies as per CRAN policy. | ||
|
||
In this version I have: | ||
|
||
* Rewrite `r6.R` documentation to address Konstanze's instructions. | ||
* Refactor `$set_max_threads()` method for better parallelism control and error handling. | ||
* Comply with CRAN's policies by building offline: | ||
* Pass "--offline" flag to `cargo build` to avoid online compilation. | ||
* Included compressed Rust dependencies in order to compile offline. | ||
* Added `configure` and `configure.win` files with 'Cargo' installation instructions when needed but not found. | ||
|
||
## Ressubmission | ||
|
||
This is a resubmission. Previous submission failed due to parallelization by default. | ||
In this version I have: | ||
|
||
* Added "-j 2" flag to `cargo build` to avoid parallelism during building (`makevars` and `makevars.win`). | ||
* Added `$set_max_threads()` method to provide parallelism control to the user. | ||
* Added tests. | ||
|
||
## R CMD check results | ||
|
||
0 errors | 0 warnings | 2 notes | ||
|
||
* Check on Ubuntu | ||
- Installed size is 9.3Mb: Rust code and dependencies are compiled and statically linked into the shared library `fio.so`. | ||
- Build on Ubuntu 24.04 raises non-portable flag due to `-mno-omit-leaf-frame-pointer` which is [set by default in 24.04](https://ubuntu.com/blog/ubuntu-performance-engineering-with-frame-pointers-by-default). | ||
* Addressed CRAN removal: | ||
- Update `extraction.rs`and `multipliers.rs` in order to lower MSRV from 1.71 to 1.67. That fixes previous failure, assuming CRAN lowest 'rustc' version is 1.69.0 (last release in Fedora 36 default repository). | ||
- Set minimum version of rustc >= 1.67.1 in `SystemRequirements`. That specific version is due to dependency `faer-entity v0.19.0`. | ||
- Update `configure` and `configure.win` to check `SystemRequirements` field in `DESCRIPTION` and performe a system check for both `Rust` and `Cargo` tools. If any of them is not found, build fails with a message to install them. If they are found, it checks for the minimum version of `rustc`. If it is lower than specified in `SystemRequirements`, build fails with a message stating both installed and minimum version required. Finally, if all tests pass, it prints the version of `cargo` and `rustc` found, which will be used to build the package. | ||
- CI tests include (all passed R CMD check): | ||
- macOS 12, 13 and 14; R release, devel and oldrel-1. | ||
- Windows Server 2019, 2022; R release, devel and oldrel-1. | ||
- Ubuntu 20.04, 22.04, 24.04; R release, devel and oldrel-1. | ||
- Fedora 36; R 4.2 built from source. `cargo` and other dependencies installed from Fedora 36 default repository (`dnf install`). | ||
- Fedora 37, 38, 39, 40; R and all dependencies installed from default repository (`dnf install`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.