File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,16 @@ name: R-CMD-check
88
99jobs :
1010 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'}
1221
1322 env :
1423 GITHUB_PAT : ${{ secrets.BLOCKCV_TOKEN }}
@@ -19,10 +28,13 @@ jobs:
1928
2029 - name : Setting up pandoc for Rmd docs
2130 uses : r-lib/actions/setup-pandoc@v2
31+
2232 - uses : r-lib/actions/setup-tinytex@v2
33+ if : runner.os != 'Windows'
2334
2435 - uses : r-lib/actions/setup-r@v2
2536 with :
37+ r-version : ${{ matrix.config.r }}
2638 use-public-rspm : true
2739
2840 - uses : r-lib/actions/setup-r-dependencies@v2
@@ -34,11 +46,12 @@ jobs:
3446 uses : r-lib/actions/check-r-package@v2
3547
3648 - name : Test coverage
49+ if : matrix.config.os == 'ubuntu-latest'
3750 run : |
3851 covr::codecov(
3952 quiet = FALSE,
4053 function_exclusions = c("rangeExplorer", "foldExplorer", "cv_block_size")
4154 )
4255 shell : Rscript {0}
4356 env :
44- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
57+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 3030# ' experimental.
3131# '
3232# ' @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
3434# ' the \code{cv} object.
3535# ' @param r a terra SpatRaster object of environmental predictor that are going to be used for modelling. This
3636# ' is used to calculate similarity between the training and testing points.
3737# ' @param method the similarity method including: MESS, L1 and L2. Read the details section.
3838# ' @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) .
4040# ' @param jitter_width numeric; the width of jitter points.
4141# ' @param points_size numeric; the size of points.
4242# ' @param points_alpha numeric; the opacity of points
7272# ' iteration = 1)
7373# '
7474# ' # compute extrapolation
75- # ' cv_similarity(cv = sb, r = covars, x = pa_data)
75+ # ' cv_similarity(cv = sb, r = covars, x = pa_data, method = "MESS" )
7676# '
7777# ' }
7878cv_similarity <- function (
You can’t perform that action at this time.
0 commit comments