Skip to content

Commit fce1153

Browse files
authored
Merge pull request #26 from kenmawer/km-issue_22_v3
Removed export of epi_shift and improved test names
2 parents 878eb71 + 00f3755 commit fce1153

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

NAMESPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ export(smooth_arx_args_list)
2626
export(smooth_arx_forecaster)
2727
export(step_epi_ahead)
2828
export(step_epi_lag)
29+
<<<<<<< HEAD
30+
export(step_narm)
31+
=======
2932
export(step_epi_naomit)
3033
export(step_epi_shift)
34+
>>>>>>> 878eb71132d58400f79ffdd6eb14452f289cbf6a
3135
import(recipes)
3236
importFrom(magrittr,"%>%")
3337
importFrom(rlang,"!!")

R/epi_shift_internal.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#' order_ for shifting.
1616
#'
1717
#' @family row operation steps
18-
#' @export
1918
#' @rdname step_epi_ahead
2019
step_epi_shift <-
2120
function(recipe,

tests/testthat/test-epi_shift_internal.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test_that("Check that epi_lag shifts properly", {
4545
expect_equal(slope_lag,1)
4646
})
4747

48-
test_that("Check for non-integer values", {
48+
test_that("Values for ahead and lag must be integer values", {
4949
r3 <- epi_recipe(x) %>%
5050
step_epi_ahead(death_rate, ahead = 3.6) %>%
5151
step_epi_lag(death_rate, lag = 1.9)
@@ -54,7 +54,7 @@ test_that("Check for non-integer values", {
5454
)
5555
})
5656

57-
test_that("Check for duplicate values", {
57+
test_that("Values for ahead and lag cannot be duplicates", {
5858
r4 <- epi_recipe(x) %>%
5959
step_epi_ahead(death_rate, ahead = 7) %>%
6060
step_epi_lag(death_rate, lag = 7) %>%

0 commit comments

Comments
 (0)