-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up deprecated documentation and links for pkgdown
- Loading branch information
Showing
7 changed files
with
55 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,69 @@ | ||
#' Deprecated function(s) of the \pkg{SomaDataIO} package | ||
#' | ||
#' @description | ||
#' `r lifecycle::badge("superseded")` | ||
#' | ||
#' These functions have either been | ||
#' `r lifecycle::badge("superseded")` or | ||
#' `r lifecycle::badge("deprecated")` | ||
#' | ||
#' `r lifecycle::badge("soft-deprecated")` | ||
#' | ||
#' These functions are provided for compatibility with | ||
#' older versions of the \pkg{SomaDataIO} package. | ||
#' in the current version of \pkg{SomaDataIO} package. | ||
#' They may eventually be completely removed, so | ||
#' please re-code your scripts accordingly based on the | ||
#' suggestions below: | ||
#' | ||
#' \tabular{lcr}{ | ||
#' `meltExpressionSet()` \tab now use \tab [pivotExpressionSet()] \cr | ||
#' `getSomamers()` \tab now use \tab [getAnalytes()] \cr | ||
#' `getFeatures()` \tab now use \tab [getAnalytes()] \cr | ||
#' `getSomamerData()` \tab now use \tab [getAnalyteInfo()] \cr | ||
#' `getFeatureData()` \tab now use \tab [getAnalyteInfo()] | ||
#' **Function** \tab \tab **Now Use** \cr | ||
#' [getSomamers()] \tab `r lifecycle::badge("superseded")` \tab [getAnalytes()] \cr | ||
#' [getSomamerData()] \tab `r lifecycle::badge("superseded")` \tab [getAnalyteInfo()] \cr | ||
#' } | ||
#' | ||
#' @rdname SomaDataIO-deprecated | ||
#' @details | ||
#' Some badges you may see in \pkg{SomaDataIO}: | ||
#' | ||
#' `r lifecycle::badge("superseded")` | ||
#' | ||
#' `r lifecycle::badge("deprecated")` | ||
#' | ||
#' `r lifecycle::badge("soft-deprecated")` | ||
#' | ||
#' `r lifecycle::badge("stable")` | ||
#' | ||
#' @name SomaDataIO-deprecated | ||
#' @author Stu Field | ||
#' @param ... A pass-through to allow the function to | ||
#' trigger the `lifecycle` message. | ||
#' @aliases meltExpressionSet getSomamers getSomamerData | ||
# @inheritParams params | ||
#' @aliases getSomamers getSomamerData | ||
#' @importFrom lifecycle deprecate_warn deprecate_stop | ||
NULL | ||
|
||
|
||
|
||
#' @describeIn getAnalyteInfo | ||
#' `r lifecycle::badge("superseded")`. Please adjust your code accordingly. | ||
#' `r lifecycle::badge("superseded")`. Please now use [getAnalyteInfo()]. | ||
#' @export | ||
getFeatureData <- function(adat) { | ||
deprecate_warn("5.1.0", "SomaDataIO::getFeatureData()", "getAnalyteInfo()") | ||
getAnalyteInfo(adat) | ||
} | ||
|
||
#' @describeIn getAnalytes | ||
#' `r lifecycle::badge("superseded")`. Please adjust your code accordingly. | ||
#' `r lifecycle::badge("superseded")`. Please now use [getAnalytes()]. | ||
#' @export | ||
getFeatures <- function(x, n = FALSE, rm.controls = FALSE) { | ||
deprecate_warn("5.1.0", "SomaDataIO::getFeatures()", "getAnalytes()") | ||
getAnalytes(x = x, n = n, rm.controls = rm.controls) | ||
} | ||
|
||
#' @noRd | ||
#' @describeIn pivotExpressionSet | ||
#' `r lifecycle::badge("superseded")`. Please now use [pivotExpressionSet()]. | ||
#' @export | ||
meltExpressionSet <- function(...) { | ||
meltExpressionSet <- function(eSet) { | ||
deprecate_stop("5.0.0", "SomaDataIO::meltExpressionSet()", "pivotExpressionSet()") | ||
} | ||
|
||
#' @noRd | ||
#' @export | ||
getSomamers <- function(...) { | ||
getSomamers <- function(x) { | ||
deprecate_stop("5.0.0", "SomaDataIO::getSomamers()", "getAnalytes()") | ||
} | ||
|
||
#' @noRd | ||
#' @export | ||
getSomamerData <- function(...) { | ||
getSomamerData <- function(x) { | ||
deprecate_stop("5.0.0", "SomaDataIO::getSomamerData()", "getAnalyteInfo()") | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.