-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixed error in `.str.sample()` to avoid negative probabilities when all species were absent from a cell (i.e. all values are zero) * enhancements - in test data, added 2 layers. One with one occ and another with one absence. Also added a cell with zero richness - added new vignette - included Fixed-Fixed algorithm in vignette - added references and improved accuracy of algorithm description in DESCRIPTION, README, and vignettes - improved accuracy of null model descriptions in vignettes - added link to functions in documentation
- Loading branch information
Showing
10 changed files
with
136 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,60 @@ | ||
## R CMD check results | ||
|
||
0 errors | 0 warnings | 1 notes | ||
0 errors | 0 warnings | 1 note | ||
|
||
Days since last update: 4 | ||
Maintainer: ‘Neander Marcel Heming <[email protected]>’ | ||
|
||
Found the following (possibly) invalid URLs: | ||
|
||
URL: doi:10.1046/j.1365-2699.2003.00875.x | ||
From: README.md | ||
Message: Invalid URI scheme (use \doi for DOIs in Rd markup) | ||
URL: doi:10.2307/177478 | ||
From: README.md | ||
Message: Invalid URI scheme (use \doi for DOIs in Rd markup) | ||
URL: https://codecov.io/gh/HemingNM/SESraster (moved to https://app.codecov.io/gh/HemingNM/SESraster) | ||
From: README.md | ||
Status: 200 | ||
Message: OK | ||
URL: https://doi.org/10.1046/j.1365-2699.2003.00875.x | ||
From: inst/doc/S1-get-started.html | ||
Status: 403 | ||
Message: Forbidden | ||
URL: https://doi.org/10.2307/177478 | ||
From: inst/doc/S1-get-started.html | ||
inst/doc/S2-null-models.html | ||
Status: 403 | ||
Message: Forbidden | ||
|
||
Found the following (possibly) invalid DOIs: | ||
|
||
DOI: 10.1046/j.1365-2699.2003.00875.x | ||
From: DESCRIPTION | ||
Status: Forbidden | ||
Message: 403 | ||
DOI: 10.2307/177478 | ||
From: DESCRIPTION | ||
Status: Forbidden | ||
Message: 403 | ||
## Maintainer comments | ||
I was not able to solve the above NOTE about possibly invalid URLs from DOIs. I | ||
know they are correct, so I am submitting as it is. | ||
|
||
Main changes are listed below: | ||
|
||
* This is a new release. | ||
|
||
## bux fixes | ||
- fixed error when all species were absent from a cell (i.e. all values are zero) | ||
* bux fixes | ||
- fixed error in `.str.sample()` to avoid negative probabilities when all | ||
species were absent from a cell (i.e. all values are zero) | ||
|
||
* new function | ||
- added `bootspat_ff()` to include Fixed-Fixed algorithm | ||
|
||
## enhancements | ||
- several enhancements, see NEWS.md | ||
* enhancements | ||
- added new vignette | ||
- added references and improved accuracy of algorithm description in DESCRIPTION, | ||
README, and vignettes | ||
- improved accuracy of null model descriptions in vignettes | ||
- added link to functions in documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
## code to prepare external dataset | ||
# creating data | ||
set.seed(100) | ||
spp_sites <- terra::rast(ncol = 5, nrow = 5, nlyr = 5) | ||
spp_sites <- terra::rast(ncol = 5, nrow = 5, nlyr = 7) | ||
terra::values(spp_sites) <- round(runif(terra::ncell(spp_sites) * terra::nlyr(spp_sites))) | ||
terra::values(spp_sites[[1]]) <- rep(c(0,1), c(24,1)) | ||
terra::values(spp_sites[[7]]) <- 1 | ||
spp_sites[1] <- NA | ||
names(spp_sites) <- paste0("sp", 1:5) | ||
spp_sites[2] <- 0 | ||
names(spp_sites) <- paste0("sp", 1:terra::nlyr(spp_sites)) | ||
# as.data.frame(spp_sites) | ||
|
||
# if(!dir.exists("inst/extdata")) dir.create("inst/extdata", recursive = T) | ||
# terra::writeRaster(spp_sites, "inst/extdata/spp_sites.tif", overwrite=T) | ||
terra::writeRaster(spp_sites, "inst/extdata/spp_sites.tif", overwrite=T) | ||
|
||
# usethis::use_data(spp_sites, overwrite = TRUE) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters