-
Notifications
You must be signed in to change notification settings - Fork 6
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 #142 from timcadman/feat/deprecate
deprecate functions
- Loading branch information
Showing
119 changed files
with
1,183 additions
and
736 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#' @keywords internal | ||
"_PACKAGE" | ||
|
||
## usethis namespace: start | ||
#' @importFrom lifecycle deprecated | ||
## usethis namespace: end | ||
NULL |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,13 @@ | ||
#' This was the original version of dh.makeStrata. It has now been deprecated. | ||
#' | ||
#' dh.makeStrata contains a number of improvements: it is computationally more | ||
#' efficient, it is more clearly coded, and it has been more thoroughly tested. | ||
#' | ||
#' @param df See argument `df` in `dh.makeStrata`. | ||
#' @param outcome Renamed to `var_to_subset` in `dh.makeStrata` | ||
#' @param age_var See argument `age_var` in `dh.makeStrata`. | ||
#' @param bands See argument `df` in `dh.makeStrata` | ||
#' @param mult_action See argument `mult_action` in `dh.makeStrata` | ||
#' @param mult_vals See argument `mult_vals` in `dh.makeStrata` | ||
#' @param keep_original Argument no longer in use in `dh.makeStrata` | ||
#' @param df_name Renamed to `new_obj` in `dh.makeStrata` | ||
#' @param conns See argument `conns` in `dh.makeStrata` | ||
#' @param id_var See argument `id_var` in `dh.makeStrata` | ||
#' @param band_action See argument `band_action` in `dh.makeStrata` | ||
#' | ||
#' @name dh.makeOutcome-defunct | ||
#' @usage dh.meanByAge(df, outcome, age_var, bands, mult_action, mult_vals, | ||
#' keep_original, df_name, conns, id_var, band_action) | ||
#' Group and subset a data frame | ||
#' @description | ||
#' `r lifecycle::badge("deprecated")` | ||
#' | ||
#' This was an early version of dh.makeStrata, which has in turn been deprecated in favour of | ||
#' \code{dsTidyverseClient::ds.arrange() |> dsTidyverseClient::ds.group_by() |> | ||
#' dsTidyverseClient::ds.slice()}. | ||
#' @keywords internal | ||
#' @noRd | ||
NULL | ||
|
||
#' @rdname dsHelper-defunct | ||
#' @section \code{dh.makeOutcome}: | ||
#' For \code{dh.makeOutcome}, use \code{\link{dh.makeStrata}}. | ||
#' | ||
#' @export | ||
dh.makeOutcome <- function(...) { | ||
.Defunct(msg = "`dh.makeOutcome` has been removed from this package. | ||
Use `dh.makeStrata` instead. See help('Defunct')") | ||
lifecycle::deprecate_stop("1.6.0", "dh.makeOutcome()", details = "Please use the following functions | ||
from dsTidyverseClient: ds.arrange(), ds.group_by() and ds.slice()") | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
#' This was an old version of dh.defineCases which is now defunct | ||
#' | ||
#' Identify subjects with available data | ||
#' @description | ||
#' `r lifecycle::badge("deprecated")` | ||
#' | ||
#' This was an early version of \code{dh.defineCases()} which has in turn been deprecated. Please | ||
#' use \code{dsTidyverseClient::ds.filter()} | ||
#' @keywords internal | ||
#' @export | ||
dh.subjHasData <- function() { | ||
.Defunct("dh.defineCases") | ||
lifecycle::deprecate_stop("1.6.0", "dh.subjHasData()", "dsTidyverseClient::ds.filter()") | ||
} |
Oops, something went wrong.