-
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.
- Loading branch information
Showing
14 changed files
with
141 additions
and
52 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 |
---|---|---|
@@ -1,7 +1,34 @@ | ||
#' Deprecated functions in epiworldR | ||
#' Deprecated and removed functions in epiworldR | ||
#' @description | ||
#' Starting version 0.0-4, epiworld changed how it refered to "actions." | ||
#' Following more traditional ABMs, actions are now called "events." | ||
#' | ||
#' @param ... Arguments to be passed to the new function. | ||
#' @param model Model object of class `epiworld_model`. | ||
#' @param tool Tool object of class `epiworld_tool`. | ||
#' @param virus Virus object of class `epiworld_virus`. | ||
#' @name epiworldR-deprecated | ||
NULL | ||
NULL | ||
|
||
#' @param n Deprecated. Either set the prevalence during the tool/virus | ||
#' initialization or use `set_prevalence_tool`/`set_prevalence_virus`. | ||
#' @export | ||
#' @rdname epiworldR-deprecated | ||
add_tool_n <- function(model, tool, n) { | ||
|
||
.Deprecated(new = "add_tool") | ||
|
||
set_prevalence_tool(tool, n, as_proportion = FALSE) | ||
add_tool(model, tool) | ||
|
||
} | ||
|
||
#' @export | ||
#' @rdname epiworldR-deprecated | ||
add_virus_n <- function(model, virus, n) { | ||
|
||
.Deprecated(new = "add_virus") | ||
set_prevalence_virus(virus, n, as_proportion = FALSE) | ||
add_virus(model, virus) | ||
|
||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.