File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,16 @@ name: R-CMD-check
8
8
9
9
jobs :
10
10
R-CMD-check :
11
- runs-on : ubuntu-latest
11
+ runs-on : ${{ matrix.config.os }}
12
+
13
+ name : ${{ matrix.config.os }} (${{ matrix.config.r }})
14
+
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ config :
19
+ - {os: ubuntu-latest, r: 'release'}
20
+ - {os: windows-latest, r: 'release'}
12
21
13
22
env :
14
23
GITHUB_PAT : ${{ secrets.BLOCKCV_TOKEN }}
@@ -19,10 +28,13 @@ jobs:
19
28
20
29
- name : Setting up pandoc for Rmd docs
21
30
uses : r-lib/actions/setup-pandoc@v2
31
+
22
32
- uses : r-lib/actions/setup-tinytex@v2
33
+ if : runner.os != 'Windows'
23
34
24
35
- uses : r-lib/actions/setup-r@v2
25
36
with :
37
+ r-version : ${{ matrix.config.r }}
26
38
use-public-rspm : true
27
39
28
40
- uses : r-lib/actions/setup-r-dependencies@v2
@@ -34,11 +46,12 @@ jobs:
34
46
uses : r-lib/actions/check-r-package@v2
35
47
36
48
- name : Test coverage
49
+ if : matrix.config.os == 'ubuntu-latest'
37
50
run : |
38
51
covr::codecov(
39
52
quiet = FALSE,
40
53
function_exclusions = c("rangeExplorer", "foldExplorer", "cv_block_size")
41
54
)
42
55
shell : Rscript {0}
43
56
env :
44
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
57
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 30
30
# ' experimental.
31
31
# '
32
32
# ' @inheritParams cv_plot
33
- # ' @param x a simple features (sf) or SpatialPoints object of the spatial sample data used for creating
33
+ # ' @param x a simple features (sf) object of the spatial sample points used for creating
34
34
# ' the \code{cv} object.
35
35
# ' @param r a terra SpatRaster object of environmental predictor that are going to be used for modelling. This
36
36
# ' is used to calculate similarity between the training and testing points.
37
37
# ' @param method the similarity method including: MESS, L1 and L2. Read the details section.
38
38
# ' @param num_sample number of random samples from raster to calculate similarity distances (only for L1 and L2).
39
- # ' @param num_plot a vector of indices of folds.
39
+ # ' @param num_plot a vector of indices of folds for plotting (default uses all) .
40
40
# ' @param jitter_width numeric; the width of jitter points.
41
41
# ' @param points_size numeric; the size of points.
42
42
# ' @param points_alpha numeric; the opacity of points
72
72
# ' iteration = 1)
73
73
# '
74
74
# ' # compute extrapolation
75
- # ' cv_similarity(cv = sb, r = covars, x = pa_data)
75
+ # ' cv_similarity(cv = sb, r = covars, x = pa_data, method = "MESS" )
76
76
# '
77
77
# ' }
78
78
cv_similarity <- function (
You can’t perform that action at this time.
0 commit comments