Skip to content

Commit

Permalink
Merge pull request #236 from R4EPI/msfdict-to-epidict
Browse files Browse the repository at this point in the history
change to epidict
  • Loading branch information
zkamvar authored Jan 21, 2020
2 parents ad61afe + 946c653 commit 798cbda
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 20 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: sitrep
Title: Report templates and helper functions for EPI
Version: 0.1.3
Version: 0.1.4
Authors@R:
c(person(given = "Dirk",
family = "Schumacher",
Expand Down Expand Up @@ -66,7 +66,7 @@ Imports:
stats,
utils,
apyramid,
msfdict
epidict
Suggests:
testthat (>= 2.1.0),
sessioninfo,
Expand All @@ -75,7 +75,7 @@ Suggests:
Remotes:
reconhub/linelist,
R4EPI/apyramid,
R4EPI/msfdict
R4EPI/epidict
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
Expand All @@ -97,7 +97,7 @@ Collate:
'helpers.R'
'inline_fun.R'
'msf_dict_rename_helper.R'
'msfdict_exports.R'
'epidict_exports.R'
'prettify_tabulation.R'
'relabel_proportions.R'
'sample-size.R'
Expand Down
6 changes: 3 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ importFrom(dplyr,select)
importFrom(dplyr,summarise)
importFrom(dplyr,summarise_all)
importFrom(dplyr,ungroup)
importFrom(epidict,gen_data)
importFrom(epidict,msf_dict)
importFrom(epidict,msf_dict_survey)
importFrom(ggplot2,aes)
importFrom(ggplot2,expand_scale)
importFrom(ggplot2,geom_density)
Expand All @@ -60,9 +63,6 @@ importFrom(ggplot2,scale_y_continuous)
importFrom(ggplot2,stat_density)
importFrom(ggplot2,stat_function)
importFrom(glue,glue)
importFrom(msfdict,gen_data)
importFrom(msfdict,msf_dict)
importFrom(msfdict,msf_dict_survey)
importFrom(rlang,"!!")
importFrom(rlang,".data")
importFrom(rlang,":=")
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# sitrep 0.1.4

* Rename import of {msfdict} to {epidict}
* Remove duplicate excel files from {epidict}

# sitrep 0.1.3

* `gen_polygon()` has been moved back into this package as it did not really
Expand Down
14 changes: 7 additions & 7 deletions R/msfdict_exports.R → R/epidict_exports.R
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# These functions have been re-exported from the {msfdict} package. They were
# These functions have been re-exported from the {epidict} package. They were
# previously part of the sitrep package, but have been moved into their own
# separate package for maintenance. By re-exporting them, the user does not
# see much of a difference. This is different than the {apyramid} package where
# we use the function internally as it has modified syntax.

#' Functions re-expored from {msfdict}
#' Functions re-expored from {epidict}
#'
#' @seealso Dictionaries: [msfdict::msf_dict()], [msfdict::msf_dict_survey()]\cr
#' Generator: [msfdict::gen_data()]
#' @seealso Dictionaries: [epidict::msf_dict()], [epidict::msf_dict_survey()]\cr
#' Generator: [epidict::gen_data()]
#' @name msf_dict_survey
#' @importFrom msfdict msf_dict_survey
#' @importFrom epidict msf_dict_survey
#' @export
#' @rdname msf_dict
"msf_dict_survey"

#' @name msf_dict
#' @importFrom msfdict msf_dict
#' @importFrom epidict msf_dict
#' @export
#' @rdname msf_dict
"msf_dict"

#' @name gen_data
#' @importFrom msfdict gen_data
#' @importFrom epidict gen_data
#' @export
#' @rdname msf_dict
"gen_data"
Expand Down
2 changes: 1 addition & 1 deletion R/gen_polygon.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
gen_polygon <- function(regions) {

# get file path
path <- system.file("extdata", "coords.csv", package = "msfdict")
path <- system.file("extdata", "coords.csv", package = "sitrep")

# read in coordinates as matrix
coords <- as.matrix(read.csv(path))
Expand Down
Binary file removed inst/extdata/MSF-outbreak-dict.xlsx
Binary file not shown.
Binary file removed inst/extdata/MSF-survey-dict.xlsx
Binary file not shown.
10 changes: 5 additions & 5 deletions man/msf_dict.Rd

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

0 comments on commit 798cbda

Please sign in to comment.