Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant changes to integrate the R package
r-phylo2vec
with the existingphylo2vec
project. The changes include adding new dependencies, creating necessary configuration files, and implementing functions to bridge the Rust and R components.Integration of R package
r-phylo2vec
:Cargo.toml
: Addedr-phylo2vec/src/rust
to the members list to include the new R package in the project.pixi.toml
: Updated R dependencies and tasks to install R and generate documentation usingrextendr
.Configuration and build setup:
r-phylo2vec/.Rbuildignore
: Added.cargo
directory to ignore list.r-phylo2vec/src/Makevars
,r-phylo2vec/src/Makevars.ucrt
,r-phylo2vec/src/Makevars.win
: Added makefiles to handle building the Rust library and linking it with R. [1] [2] [3]r-phylo2vec/src/.gitignore
: Added entries to ignore build artifacts and cargo directory.Implementation of R functions:
r-phylo2vec/R/extendr-wrappers.R
: Added R functions to call Rust implementations for sampling trees, converting between Newick format and Phylo2Vec vectors, and validating vectors.r-phylo2vec/src/rust/src/lib.rs
: Implemented corresponding Rust functions and registered them with R usingextendr
.Documentation and metadata:
r-phylo2vec/DESCRIPTION
: Added package metadata, including name, version, authors, and description.r-phylo2vec/NAMESPACE
: Registered dynamic library and functions for the package.r-phylo2vec/man/*.Rd
: Generated documentation for the R functions. [1] [2] [3] [4]This comprehensive integration ensures that the
phylo2vec
functionality is accessible from R, enhancing the usability and reach of the project.Related Issues
Closes #13