Skip to content

Commit

Permalink
v. 2.0.7 (#255)
Browse files Browse the repository at this point in the history

* Update NEWS

* Avoid NOTE

* Replace context() with message() and fix tests

* Update documentation to v. 2.0.7
  • Loading branch information
ranghetti authored Apr 21, 2022
1 parent a20bf02 commit 9c94749
Show file tree
Hide file tree
Showing 83 changed files with 5,355 additions and 1,015 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@
^vignettes/standalone_execution\.Rmd
^CONDUCT\.md$
^\.github$
^doc$
^Meta$
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ inst/ExtData/modis_sinusoidal_grid_world\.dbf
inst/ExtData/modis_sinusoidal_grid_world\.prj
inst/ExtData/modis_sinusoidal_grid_world\.shp
inst/ExtData/modis_sinusoidal_grid_world\.shx
/doc/
/Meta/
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: MODIStsp
Title: Find, Download and Process MODIS Land Products
Data
Type: Package
Version: 2.0.6.9002
Version: 2.0.7
Authors@R: c(person("Lorenzo", "Busetto",
role = c("aut"),
comment = c(ORCID = '0000-0001-9634-6038')),
Expand Down Expand Up @@ -83,13 +83,14 @@ Suggests:
tibble,
tibbletime,
tidyr,
qpdf,
xtable
SystemRequirements:
URL: https://github.com/ropensci/MODIStsp/, https://docs.ropensci.org/MODIStsp/
BugReports: https://github.com/ropensci/MODIStsp/issues
LazyData: true
VignetteBuilder: knitr
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
Roxygen: list(markdown = TRUE)
Encoding: UTF-8
Language: en-US
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# MODIStsp 2.0.7

## Minor changes
- Add product version 061 for existing products (#238)
- Closing the support on GitHub issues, due to career change of the maintainer.

## Bug fixes
- Fix #245


# MODIStsp 2.0.6

## Minor changes
Expand Down
12 changes: 6 additions & 6 deletions R/MODIStsp_extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ MODIStsp_extract <- function(in_rts, sf_object,
.SD <- NULL # Workaround to avoid note on package check


if (!class(in_rts) %in% c("RasterStack", "RasterBrick")) {
if (!inherits(in_rts, c("RasterStack", "RasterBrick"))) {
stop("Input is not a RasterStack or RasterBrick object")
}
if (!class(raster::getZ(in_rts)) == "Date") {
if (!inherits(raster::getZ(in_rts), "Date")) {
stop("Input does not contain valid dates in its 'Z' attribute !")
}
if (length(start_date) == 0) {
Expand All @@ -172,15 +172,15 @@ MODIStsp_extract <- function(in_rts, sf_object,
if (verbose)
message("Ending date not provided - Using the last date in the stack") #nocov #nolint
}
if (!class(start_date) %in% c("Date", "POSIXct", "POSIXlt")) {
if (!inherits(start_date, c("Date", "POSIXct", "POSIXlt"))) {
start_date <- try(as.Date(start_date), silent = TRUE)
if (class(start_date) == "try-error") {
if (inherits(start_date, "try-error")) {
stop("start_date is not a Date object or string coercible to date")
}
}
if (!class(end_date) %in% c("Date", "POSIXct", "POSIXlt")) {
if (!inherits(end_date, c("Date", "POSIXct", "POSIXlt"))) {
end_date <- try(as.Date(end_date), silent = TRUE)
if (class(end_date) == "try-error") {
if (inherits(end_date, "try-error")) {
stop("end_date is not a Date object or string coercible to date")
}
}
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ For more information, documentation and examples of use, **see also the
support for no longer available version 5 of some products.

- 05/03/2019 - `{MODIStsp}` 1.3.8 is out. Fixes an issue causing
incorrect application of scale/offset values on GDAL versions > 2.3
incorrect application of scale/offset values on GDAL versions \> 2.3
(<https://github.com/ropensci/MODIStsp/issues/163>) and adds support
for products MOD21A1D.006, MOD21A1N.006 and MOD21A2.006.

Expand Down Expand Up @@ -274,8 +274,6 @@ for more detailed instructions and examples.

# Code of Conduct

Please note that this project is released with a [Contributor Code of
Conduct](https://github.com/ropensci/MODIStsp/blob/master/CONDUCT.md).
By participating in this project you agree to abide by its terms.


Please note that this package is released with a [Contributor Code of
Conduct](https://ropensci.org/code-of-conduct/). By contributing to this
project, you agree to abide by its terms.
12 changes: 12 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
MODIStsp 2.0.7
================

* Windows 10 on local install, R 4.1.3
* ArchLinux on local install, R 4.1.3
* win-builder (R-devel, R-release, R-oldrelease)

## R CMD check results

There were no ERRORs, WARNINGs nor NOTEs.


MODIStsp 2.0.6
================

Expand Down
4 changes: 2 additions & 2 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9c94749

Please sign in to comment.