Repository hySpc.skeleton
is a package template ("skeleton") for r-hyperspec
family packages.
When creating a new package (repository):
SKELETON
and hySpc.skeleton
with the new package name in:DESCRIPTION
NEWS.md
README.md
LICENSE
tests/testthat.R
tests/testthat/test_attached.R
DESCRIPTION
:DESCRIPTION
LICENSE
README.md
README
:devtools::install(build_vignettes = TRUE)
the following code might be more appropriate if no vignettes are included devtools::install()
)github-helpers/
),github-helpers/
CONTRIBUTING.md
which describes the standard operating procedures for the r-hyperspec
project.hyperSpec
files. Leave the old code untouched for now, as hyperSpec
has to continue to operate.hyperSpec
. The support files are already present. If you don't want a vignette, delete the entire vignette folder.CONTRIBUTING.md
..github/workflows/drat--insert-package.yaml
. Triggering branches are set to NONE in pkg-skeleton
because we don't want pkg-skeleton
to be deployed to the repo.This package is still under construction. So this website is not fully updated yet.
R package hySpc.skeleton is a member of the r-hyperspec
packages family, which ...
WRITE THE PURPOSE OF THIS PACKAGE
There are two versions of hySpc.skeleton online documentation:
a. for the released version of package, b. for the development version of package.
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.skeleton", 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.skeleton")
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).
From the hySpc.skeleton's GitHub repository:
git clone
the branch of interest.
You may need to fork it before cloning.Open the downloaded directory in RStudio (preferably, as an RStudio project).
README.md
.project.Rproj
icon In RStudio 'Console' window, run the code (provided below) to: a. Install packages remotes and devtools. b. Install hySpc.skeleton's dependencies. c. Create hySpc.skeleton's documentation. d. Install package hySpc.skeleton.
# 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.skeleton's dependencies
remotes::install_deps(dependencies = TRUE)
# Create hySpc.skeleton's documentation
devtools::document()
# Install package hySpc.skeleton
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.