Skip to content

Commit

Permalink
solving more CRAN issues, now down to 4 warnings and 2 notes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroliman committed Nov 10, 2022
1 parent ace50dd commit a4caded
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
^.*\.Rproj$
^\.Rproj\.user$
^OPTIC_linear*
dev
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ importFrom(magrittr,"%>%")
importFrom(purrr,cross)
importFrom(purrr,transpose)
importFrom(tidyr,crossing)
importFrom(utils,globalVariables)
1 change: 1 addition & 0 deletions R/globals.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

# dplyr is used in this package; this fixes some of the issues created by it:
# https://community.rstudio.com/t/how-to-solve-no-visible-binding-for-global-variable-note/28887
#' @importFrom utils globalVariables
utils::globalVariables(c("treatment1", "treatment2", "temp_lag1", "temp_lag2", "treatment_change1", "treatment_change2", "treatment", "temp_lag", "treatment_change", "estimate", "se", "variance", "t_stat", "p_value", "mse", "crude.rate", "update.formula"))
4 changes: 4 additions & 0 deletions R/iter-results.r
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ mse_resid <- function(x) {
return(mean(x^2, na.rm=T))
}

#' TODO: write documentation for this function if the user needs to see this.
#'
#' @param model_simulation
#'
#' @export
iter_results.lm <- function(model_simulation) {
m <- model_simulation$model_result
Expand Down
7 changes: 7 additions & 0 deletions dev/dev_scripts.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


# ammend dependencies
attachment::att_amend_desc()

# document
devtools::document()
14 changes: 14 additions & 0 deletions man/iter_results.lm.Rd

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

0 comments on commit a4caded

Please sign in to comment.