diff --git a/DESCRIPTION b/DESCRIPTION index 35aebd65..1215a1f8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: rsample Title: General Resampling Infrastructure -Version: 0.0.7.9000 +Version: 0.0.8 Authors@R: c( person(given = "Max", family = "Kuhn", email = "max@rstudio.com", role = c("aut", "cre")), person(given = "Fanny", family = "Chow", email = "fannybchow@gmail.com", role = c("aut")), @@ -41,5 +41,5 @@ License: GPL-2 Encoding: UTF-8 VignetteBuilder: knitr LazyData: true -RoxygenNote: 7.1.1 +RoxygenNote: 7.1.1.9000 Roxygen: list(markdown = TRUE) diff --git a/NEWS.md b/NEWS.md index 0395832e..484f8016 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,11 +1,8 @@ -# rsample (development version) +# rsample 0.0.8 -* New `manual_rset()` for constructing rset objects manually from custom - rsplits (tidymodels/tune#273). +* New `manual_rset()` for constructing rset objects manually from custom rsplits (tidymodels/tune#273). -* Three new time based resampling functions have been added: `sliding_window()`, - `sliding_index()`, and `sliding_period()`, which have more flexibility than - the pre-existing `rolling_origin()`. +* Three new time based resampling functions have been added: `sliding_window()`, `sliding_index()`, and `sliding_period()`, which have more flexibility than the pre-existing `rolling_origin()`. * Correct `alpha` parameter handling for bootstrap CI functions (#179, #184). diff --git a/R/bootci.R b/R/bootci.R index bea46097..5fc7859a 100644 --- a/R/bootci.R +++ b/R/bootci.R @@ -200,6 +200,7 @@ pctl_single <- function(stats, alpha = 0.05) { #' doi:10.1017/CBO9780511802843 #' #' @examples +#' \donttest{ #' library(broom) #' library(dplyr) #' library(purrr) @@ -235,6 +236,7 @@ pctl_single <- function(stats, alpha = 0.05) { #' bootstraps(Sacramento, 1000, apparent = TRUE) %>% #' mutate(correlations = map(splits, rank_corr)) %>% #' int_pctl(correlations) +#' } #' @export int_pctl <- function(.data, statistics, alpha = 0.05) { diff --git a/man/int_pctl.Rd b/man/int_pctl.Rd index 930b49d9..7ee4bef9 100644 --- a/man/int_pctl.Rd +++ b/man/int_pctl.Rd @@ -56,6 +56,7 @@ that was used to create the statistics of interest and are computationally taxing. } \examples{ +\donttest{ library(broom) library(dplyr) library(purrr) @@ -92,6 +93,7 @@ bootstraps(Sacramento, 1000, apparent = TRUE) \%>\% mutate(correlations = map(splits, rank_corr)) \%>\% int_pctl(correlations) } +} \references{ Davison, A., & Hinkley, D. (1997). \emph{Bootstrap Methods and their Application}. Cambridge: Cambridge University Press.