Skip to content

Commit

Permalink
starting to fix CRAN check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroliman committed Nov 10, 2022
1 parent 79d053b commit ace50dd
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 37 deletions.
38 changes: 17 additions & 21 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
Package: optic
Title: OPTIC
Description: Implements simulation work to assess the strengths and weaknesses
of various model and analytic approaches to evaluating policy that responds
to the opioid crisis.
Version: 0.1
Authors@R: c(
person("Adam", "Scherling", email="[email protected]", role=c("cre", "aut")),
person("Beth Ann", "Griffin", email="[email protected]", role=c("aut")),
person("Joseph", "Pane", role=c("aut")),
person("Geoffrey", "Grimm", role=c("aut")))
Depends: R (>= 3.6.0)
person("Adam", "Scherling", , "[email protected]", role = c("cre", "aut")),
person("Beth Ann", "Griffin", , "[email protected]", role = "aut"),
person("Joseph", "Pane", role = "aut"),
person("Geoffrey", "Grimm", role = "aut")
)
Description: Implements simulation work to assess the strengths and
weaknesses of various model and analytic approaches to evaluating
policy that responds to the opioid crisis.
License: GPL-3 | file LICENSE
Depends:
R (>= 3.6.0)
Imports:
dplyr,
tidyr,
rlang,
future.apply,
lmtest,
magrittr,
R6,
twang,
DataCombine,
MASS,
purrr,
R6,
sandwich,
lmtest
tidyr,
utils
Encoding: UTF-8
RoxygenNote: 7.1.1
Suggests:
future,
knitr,
parallel,
rmarkdown
VignetteBuilder: knitr
LazyData: true
RoxygenNote: 7.2.1
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ export(selbias_results)
export(selbias_sample)
import(dplyr)
importFrom(R6,R6Class)
importFrom(future.apply,future_lapply)
importFrom(magrittr,"%>%")
importFrom(purrr,cross)
importFrom(purrr,transpose)
importFrom(tidyr,crossing)
3 changes: 3 additions & 0 deletions R/create-config.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
#'
#' @export
#'
#' @importFrom purrr cross
#' @importFrom purrr transpose
#'
configure_simulation <- function(x, models, iters, params, method_sample, method_model, method_results,
method_pre_model=NULL, method_post_model=NULL,
globals=NULL, verbose=TRUE) {
Expand Down
2 changes: 2 additions & 0 deletions R/dispatch-simulations.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#' each indepdendent set of simulations
#' @param verbose default TRUE, have the dispatcher tell you what's currently running
#'
#' @importFrom future.apply future_lapply
#'
#' @export
dispatch_simulations <- function(sim_config, use_future=FALSE, seed=NULL, failure=NULL, verbose=0, ...) {
if (!"SimConfig" %in% class(sim_config)) {
Expand Down
6 changes: 3 additions & 3 deletions R/exposure-list.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#'
#' @param sampled_time_period year that policy is first enacted
#' @param mo month that policy is first enacted
#' @available_periods all available time periods in the data
#' @policy_speed either "instant" for the policy going into immediate effect or "slow"
#' @param available_periods all available time periods in the data
#' @param policy_speed either "instant" for the policy going into immediate effect or "slow"
#' for the policy effect phasing in over time
#' @n_implementation_periods used if policy_speed is slow, number of time periods over
#' @param n_implementation_periods used if policy_speed is slow, number of time periods over
#' which to phase in full policy effect
#'
#' @export
Expand Down
1 change: 1 addition & 0 deletions R/sim-config.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SimConfig <- R6::R6Class(
# PUBLIC
###
public = list(

initialize = function(
data, models,
method_sample, method_pre_model, method_model, method_post_model, method_results,
Expand Down
24 changes: 12 additions & 12 deletions man/SimConfig.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/cluster_adjust_se.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions man/exposure_list.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ace50dd

Please sign in to comment.