Skip to content

Commit af8deda

Browse files
committed
refactor(importfrom): switch package-level documentation (#23)
1 parent f314961 commit af8deda

12 files changed

Lines changed: 42 additions & 33 deletions

R/add_patient_generator.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#' structure \code{param$<unit>_arrivals$<patient_type>} containing numeric
1818
#' arrival intervals (e.g., \code{param$asu_arrivals$stroke = 10}).
1919
#'
20-
#' @importFrom simmer add_generator
21-
#'
2220
#' @return The modified Simmer environment with the new patient generator added.
2321
#' @export
2422

R/create_asu_trajectory.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
#' of routing to each destination (e.g.
1414
#' \code{param$asu_routing$stroke$rehab = 0.24}).
1515
#'
16-
#' @importFrom simmer branch get_attribute log_ release seize set_attribute
17-
#' @importFrom simmer timeout trajectory
18-
#'
1916
#' @return Simmer trajectory object. Defines patient journey logic through the
2017
#' healthcare system.
2118
#' @export

R/create_rehab_trajectory.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
#' probability of routing to each destination (e.g.
1414
#' \code{param$rehab_routing$stroke$esd = 0.40}).
1515
#'
16-
#' @importFrom simmer get_attribute log_ release seize set_attribute timeout
17-
#' @importFrom simmer trajectory
18-
#'
1916
#' @return Simmer trajectory object. Defines patient journey logic through the
2017
#' healthcare system.
2118
#' @export

R/distribution_registry.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
#'
1515
#' @docType class
1616
#'
17-
#' @importFrom R6 R6Class
18-
#' @importFrom stats rbeta rbinom rchisq rexp rgeom rgamma rlnorm rnorm rpois
19-
#' @importFrom stats rt runif
20-
#'
2117
#' @export
2218

2319
DistributionRegistry <- R6Class("DistributionRegistry", list( # nolint: object_name_linter

R/filter_warmup.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
#' @param result Named list with two tables: arrivals & occupancy.
44
#' @param warm_up_period Length of warm-up period.
55
#'
6-
#' @importFrom dplyr filter group_by ungroup
7-
#' @importFrom rlang .data
8-
#'
96
#' @return The name list `result`, but with the tables (`arrivals` and
107
#' `occupancy`) filtered to remove warm-up patients.
118
#' @export

R/get_occupancy_stats.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
#' @param occupancy DataFrame with three columns: \code{resource}, \code{time},
1717
#' and \code{occupancy}.
1818
#'
19-
#' @importFrom dplyr filter
20-
#' @importFrom rlang .data
21-
#'
2219
#' @return A list of data frames, one per resource, each containing occupancy
2320
#' statistics.
2421
#' @export

R/model.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ utils::globalVariables("time")
99
#' may not wish to do if being set elsewhere - such as done in \code{runner()}).
1010
#' Default is TRUE.
1111
#'
12-
#' @importFrom dplyr filter group_by mutate rowwise ungroup
13-
#' @importFrom rlang .data
14-
#' @importFrom simmer add_resource get_mon_arrivals get_mon_resources simmer
15-
#' @importFrom simmer wrap
16-
#' @importFrom stats setNames
17-
#' @importFrom utils capture.output
18-
#'
1912
#' @return Named list with two tables: arrivals and occupancy.
2013
#' @export
2114

R/parameters.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#' @param log_to_file Whether to save activity log to file.
1414
#' @param file_path Path to save log to file.
1515
#'
16-
#' @importFrom jsonlite fromJSON
17-
#'
1816
#' @return A named list of all simulation parameters.
1917
#' @export
2018

R/runner.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
#' documentation, which states: "Note that as.list(seq_along(x)) is not a valid
1212
#' set of such .Random.seed values."
1313
#'
14-
#' @importFrom dplyr bind_rows
15-
#' @importFrom future availableCores multisession plan sequential
16-
#' @importFrom future.apply future_lapply
17-
#'
1814
#' @return Named list with three tables: monitored arrivals, monitored
1915
#' resources, and the processed results from each run.
2016
#' @export

R/simulation-package.R

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#' @keywords internal
2+
"_PACKAGE"
3+
4+
## usethis namespace: start
5+
#' @importFrom dplyr bind_rows filter group_by mutate rowwise ungroup
6+
#' @importFrom future availableCores multisession plan sequential
7+
#' @importFrom future.apply future_lapply
8+
#' @importFrom jsonlite fromJSON
9+
#' @importFrom R6 R6Class
10+
#' @importFrom rlang .data
11+
#' @importFrom simmer add_generator add_resource branch get_attribute get_mon_arrivals get_mon_resources log_ release seize set_attribute simmer timeout trajectory wrap
12+
#' @importFrom stats rbeta rbinom rchisq rexp rgeom rgamma rlnorm rnorm rpois rt runif setNames
13+
#' @importFrom utils capture.output
14+
## usethis namespace: end
15+
NULL

0 commit comments

Comments
 (0)