-
Notifications
You must be signed in to change notification settings - Fork 3
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 #76 from r-hyperspec/feature-38/rename-functions
Feature 38/rename functions (40)
- Loading branch information
Showing
10 changed files
with
59 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#' @name DEPRECATED-spc.identify | ||
#' @concept deprecated | ||
#' | ||
#' @title (DEPRECATED) | ||
#' Identifying spectra and spectral data points | ||
#' | ||
#' @description | ||
#' These \pkg{hyperSpec} functions are **deprecated** and not maintained any | ||
#' more. You should not use these. | ||
#' Currently they are present due to back-compatibility reasons and will be | ||
#' removed in the next release of the package. | ||
#' Please, use the suggested alternative functions instead: | ||
#' | ||
#' - [hyperSpec::identify_spc()] | ||
#' | ||
#' | ||
#' @param ... arguments to [hyperSpec::identify_spc()]. | ||
#' | ||
#' @include identify_spc.R | ||
#' @export | ||
spc.identify <- function(...) { | ||
hySpc_deprecated("identify_spc") | ||
identify_spc(...) | ||
} | ||
|
||
|
||
# Unit tests ----------------------------------------------------------------- | ||
|
||
hySpc.testthat::test(spc.identify) <- function() { | ||
context("Deprecated functions") | ||
|
||
test_that("spc.identify() is deprecated", { | ||
expect_error(expect_warning(spc.identify(), "deprecated")) | ||
}) | ||
} |
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
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