This package is still under construction. So this website is not fully updated yet.
R package hySpc.read.spc is a member of the r-hyperspec
packages family, the purpose of which is to import Thermo Galactic's .spc
file format into a hyperSpec object.
https://r-hyperspec.github.io/hySpc.read.spc
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.read.spc", repos = repos)
Install from GitHub (details)
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.read.spc")
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).
Install from Source (details)
-
From the hySpc.read.spc's GitHub repository:
-
Open the downloaded directory in RStudio (preferably, as an RStudio project).
- The code below works correctly only if your current working directory coincides with the root of the repository, i.e., if it is in the directory that contains file
README.md
. - If you open RStudio project correctly (e.g., by clicking
project.Rproj
icon in the directory), then the working directory is set correctly by default.
- The code below works correctly only if your current working directory coincides with the root of the repository, i.e., if it is in the directory that contains file
-
In RStudio 'Console' window, run the code (provided below) to: a. Install packages remotes and devtools. b. Install hySpc.read.spc's dependencies. c. Create hySpc.read.spc's documentation. d. Install package hySpc.read.spc.
# 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.read.spc's dependencies
remotes::install_deps(dependencies = TRUE)
# Create hySpc.read.spc's documentation
devtools::document()
# Install package hySpc.read.spc
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.