Skip to content

Commit 4bf6dff

Browse files
Reexport get_rsplit (Fixes #143) (#144)
1 parent c79c9cd commit 4bf6dff

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

NAMESPACE

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ S3method(vec_restore,spatial_nndm_cv)
6969
export(analysis)
7070
export(assessment)
7171
export(autoplot)
72+
export(get_rsplit)
7273
export(spatial_block_cv)
7374
export(spatial_buffer_vfold_cv)
7475
export(spatial_clustering_cv)
@@ -83,6 +84,7 @@ importFrom(rlang,is_empty)
8384
importFrom(rsample,analysis)
8485
importFrom(rsample,assessment)
8586
importFrom(rsample,complement)
87+
importFrom(rsample,get_rsplit)
8688
importFrom(rsample,make_splits)
8789
importFrom(rsample,new_rset)
8890
importFrom(stats,as.dist)

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# spatialsample (development version)
22

3+
* `get_rsplit()` is now re-exported from the rsample package. This provides a
4+
more natural, pipe-able interface for accessing individual splits;
5+
`get_rsplit(rset, 1)` is identical to `rset$splits[[1]]`.
6+
37
# spatialsample 0.4.0
48

59
* `spatial_nndm_cv()` is a new function for nearest neighbor distance matching

R/spatialsample-package.R

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ rsample::analysis
2424
#' @export
2525
rsample::assessment
2626

27+
#' @importFrom rsample get_rsplit
28+
#' @export
29+
rsample::get_rsplit
30+
2731
#' @importFrom ggplot2 autoplot
2832
#' @export
2933
ggplot2::autoplot

man/reexports.Rd

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)