High-Performance Computing tools for r-hyperspec.
hySpc.hpc provides advanced spatial algorithms for hyperspectral images using high-performance Rust FFI (extendr) and sparse linear algebra (faer).
library(hyperSpec)
library(hySpc.hpc)
# Suppose `spc_noisy` is a hyperspectral image
# Apply spatial smoothing with a Rust-powered sparse Cholesky solver:
spc_smoothed <- graphSmooth(spc_noisy, width = 100, height = 100, alpha = 2.0, neighbors = 8)R package hySpc.hpc is a member of the r-hyperspec packages family, which …
WRITE THE PURPOSE OF THIS PACKAGE
There are two versions of hySpc.hpc online documentation:
The documentation of the other r-hyperspec family packages can be found at r-hyperspec.github.io.
Issues, bug reports and feature requests should go to an appopriate package’s repository:
The recommended way to install the in-development version:
repos <- c("https://r-hyperspec.github.io/pkg-repo/", getOption("repos"))
install.packages("hySpc.hpc", repos = repos)You can install the in-development version of the package from GitHub too:
if (!require(remotes)) {install.packages("remotes")}
remotes::install_github("r-hyperspec/hySpc.hpc")NOTE 1: Usually, “Windows” users need to download, install and properly configure Rtools (see these instructions) to make the code above work.
NOTE 2: This method will not install package’s documentation (help pages and vignettes) into your computer. So you can either use the online documentation or build the package from source (see the next section).
git clone the branch of interest. You may need to fork it before cloning.
README.md.project.Rproj icon
in the directory), then the working directory is set correctly by default.
# Do not abort installation even if some packages are not available
Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS = "true")
# Install packages remotes and devtools
install.packages(c("remotes", "devtools"))
# Install hySpc.hpc's dependencies
remotes::install_deps(dependencies = TRUE)
# Create hySpc.hpc's documentation
devtools::document()
# Install package hySpc.hpc
devtools::install(build_vignettes = TRUE)NOTE 1: Usually, “Windows” users need to download, install and properly configure Rtools (see these instructions) to make the code above work.
Developers can find information about automatic deployment from this repo to pkg-repo here in CONTRIBUTING.md.