lifeCycle | R Documentation |
The lifeCycle
function is used to set the life cycle stage of
a function. It is to be used within the body of the function that is being
deprecated or defunct. It is a wrapper around both .Deprecated
and
.Defunct
base R functions.
lifeCycle(
newfun = oldfun,
newpackage,
package,
cycle = c("deprecated", "defunct"),
title = package
)
newfun |
|
newpackage |
|
package |
|
cycle |
|
title |
|
test_fun <- function() {
lifeCycle(newfun = "new_test", package = "BiocBaseUtils")
}
tryCatch(
test_fun(),
warning = function(w) message(w)
)
test_fun <- function() {
lifeCycle(
newfun = "new_test", package = "BiocBaseUtils", cycle = "defunct"
)
}
tryCatch(
test_fun(),
error = function(e) message(e)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.