Skip to content

Commit 9c94749

Browse files
authored
v. 2.0.7 (#255)
* Update NEWS * Avoid NOTE * Replace context() with message() and fix tests * Update documentation to v. 2.0.7
1 parent a20bf02 commit 9c94749

File tree

83 files changed

+5355
-1015
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+5355
-1015
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@
2828
^vignettes/standalone_execution\.Rmd
2929
^CONDUCT\.md$
3030
^\.github$
31+
^doc$
32+
^Meta$

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ inst/ExtData/modis_sinusoidal_grid_world\.dbf
2222
inst/ExtData/modis_sinusoidal_grid_world\.prj
2323
inst/ExtData/modis_sinusoidal_grid_world\.shp
2424
inst/ExtData/modis_sinusoidal_grid_world\.shx
25+
/doc/
26+
/Meta/

DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: MODIStsp
22
Title: Find, Download and Process MODIS Land Products
33
Data
44
Type: Package
5-
Version: 2.0.6.9002
5+
Version: 2.0.7
66
Authors@R: c(person("Lorenzo", "Busetto",
77
role = c("aut"),
88
comment = c(ORCID = '0000-0001-9634-6038')),
@@ -83,13 +83,14 @@ Suggests:
8383
tibble,
8484
tibbletime,
8585
tidyr,
86+
qpdf,
8687
xtable
8788
SystemRequirements:
8889
URL: https://github.com/ropensci/MODIStsp/, https://docs.ropensci.org/MODIStsp/
8990
BugReports: https://github.com/ropensci/MODIStsp/issues
9091
LazyData: true
9192
VignetteBuilder: knitr
92-
RoxygenNote: 7.1.1
93+
RoxygenNote: 7.1.2
9394
Roxygen: list(markdown = TRUE)
9495
Encoding: UTF-8
9596
Language: en-US

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# MODIStsp 2.0.7
2+
3+
## Minor changes
4+
- Add product version 061 for existing products (#238)
5+
- Closing the support on GitHub issues, due to career change of the maintainer.
6+
7+
## Bug fixes
8+
- Fix #245
9+
10+
111
# MODIStsp 2.0.6
212

313
## Minor changes

R/MODIStsp_extract.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ MODIStsp_extract <- function(in_rts, sf_object,
156156
.SD <- NULL # Workaround to avoid note on package check
157157

158158

159-
if (!class(in_rts) %in% c("RasterStack", "RasterBrick")) {
159+
if (!inherits(in_rts, c("RasterStack", "RasterBrick"))) {
160160
stop("Input is not a RasterStack or RasterBrick object")
161161
}
162-
if (!class(raster::getZ(in_rts)) == "Date") {
162+
if (!inherits(raster::getZ(in_rts), "Date")) {
163163
stop("Input does not contain valid dates in its 'Z' attribute !")
164164
}
165165
if (length(start_date) == 0) {
@@ -172,15 +172,15 @@ MODIStsp_extract <- function(in_rts, sf_object,
172172
if (verbose)
173173
message("Ending date not provided - Using the last date in the stack") #nocov #nolint
174174
}
175-
if (!class(start_date) %in% c("Date", "POSIXct", "POSIXlt")) {
175+
if (!inherits(start_date, c("Date", "POSIXct", "POSIXlt"))) {
176176
start_date <- try(as.Date(start_date), silent = TRUE)
177-
if (class(start_date) == "try-error") {
177+
if (inherits(start_date, "try-error")) {
178178
stop("start_date is not a Date object or string coercible to date")
179179
}
180180
}
181-
if (!class(end_date) %in% c("Date", "POSIXct", "POSIXlt")) {
181+
if (!inherits(end_date, c("Date", "POSIXct", "POSIXlt"))) {
182182
end_date <- try(as.Date(end_date), silent = TRUE)
183-
if (class(end_date) == "try-error") {
183+
if (inherits(end_date, "try-error")) {
184184
stop("end_date is not a Date object or string coercible to date")
185185
}
186186
}

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ For more information, documentation and examples of use, **see also the
8686
support for no longer available version 5 of some products.
8787

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

@@ -274,8 +274,6 @@ for more detailed instructions and examples.
274274

275275
# Code of Conduct
276276

277-
Please note that this project is released with a [Contributor Code of
278-
Conduct](https://github.com/ropensci/MODIStsp/blob/master/CONDUCT.md).
279-
By participating in this project you agree to abide by its terms.
280-
281-
277+
Please note that this package is released with a [Contributor Code of
278+
Conduct](https://ropensci.org/code-of-conduct/). By contributing to this
279+
project, you agree to abide by its terms.

cran-comments.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
MODIStsp 2.0.7
2+
================
3+
4+
* Windows 10 on local install, R 4.1.3
5+
* ArchLinux on local install, R 4.1.3
6+
* win-builder (R-devel, R-release, R-oldrelease)
7+
8+
## R CMD check results
9+
10+
There were no ERRORs, WARNINGs nor NOTEs.
11+
12+
113
MODIStsp 2.0.6
214
================
315

docs/404.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)