diff --git a/NEWS.md b/NEWS.md index 176dd73..5a0248e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # rsi (development version) +* A test that requires online resources is now skipped on CRAN. There are + no user-facing changes in this version. + # rsi 0.3.0 * rsi has been peer-reviewed by the rOpenSci project! Huge thank you to diff --git a/R/download.R b/R/download.R index cc0f64f..00f00d0 100644 --- a/R/download.R +++ b/R/download.R @@ -129,6 +129,7 @@ rsi_download_rasters <- function(items, ) }, error = function(e) { + browser() rlang::warn( glue::glue( "Failed to download {items$features[[which_item]]$id %||% 'UNKNOWN'} from {items$features[[which_item]]$properties$datetime %||% 'UNKNOWN'}" # nolint diff --git a/README.md b/README.md index a075a09..e14ecf5 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ [![R-CMD-check](https://github.com/Permian-Global-Research/rsi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Permian-Global-Research/rsi/actions/workflows/R-CMD-check.yaml) [![Codecov test coverage](https://codecov.io/gh/Permian-Global-Research/rsi/branch/main/graph/badge.svg)](https://app.codecov.io/gh/Permian-Global-Research/rsi?branch=main) -[![License: Apache -2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/license/apache-2-0) +[![License: +Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/license/apache-2-0) [![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#maturing) [![Project Status: Active – The project has reached a stable, usable @@ -27,17 +27,20 @@ The goal of rsi is to address several **r**epeated **s**patial and help avoid **r**epetitive **s**tress **i**njuries. Specifically, rsi provides: -- An interface to the **R**some – excuse me, [*Awesome* Spectral Indices - project](https://github.com/awesome-spectral-indices/awesome-spectral-indices), - providing the list of indices directly in R as a friendly tibble, -- A method for efficiently *calculating* those awesome spectral indices - using local rasters, enabling **r**apid **s**pectral **i**nference, -- A method for downloading STAC data – excuse me, **r**etriving **S**TAC - **i**nformation – from any STAC server, with additional helpers for - downloading Landsat, Sentinel-1, and Sentinel-2 data from free and - public STAC servers providing **r**apid **s**atellite **i**magery, -- A **r**aster **s**tack **i**ntegration method for combining multiple - rasters containing distinct data sets into a single raster stack. + - An interface to the **R**some – excuse me, [*Awesome* Spectral + Indices + project](https://github.com/awesome-spectral-indices/awesome-spectral-indices), + providing the list of indices directly in R as a friendly tibble, + - A method for efficiently *calculating* those awesome spectral + indices using local rasters, enabling **r**apid **s**pectral + **i**nference, + - A method for downloading STAC data – excuse me, **r**etriving + **S**TAC **i**nformation – from any STAC server, with additional + helpers for downloading Landsat, Sentinel-1, and Sentinel-2 data + from free and public STAC servers providing **r**apid **s**atellite + **i**magery, + - A **r**aster **s**tack **i**ntegration method for combining multiple + rasters containing distinct data sets into a single raster stack. The functions in rsi are designed around letting you use the tools you’re familiar with to process raster data using compute that you @@ -75,7 +78,7 @@ project](https://github.com/awesome-spectral-indices/awesome-spectral-indices): library(rsi) spectral_indices() -#> # A tibble: 231 × 9 +#> # A tibble: 243 × 9 #> application_domain bands contributor date_of_addition formula long_name #> #> 1 vegetation https://gith… 2021-11-17 (N - 0… Aerosol … @@ -88,7 +91,7 @@ spectral_indices() #> 8 vegetation https://gith… 2022-04-08 (N * (… Advanced… #> 9 water https://gith… 2021-09-18 4.0 * … Automate… #> 10 water https://gith… 2021-09-18 B + 2.… Automate… -#> # ℹ 221 more rows +#> # ℹ 233 more rows #> # ℹ 3 more variables: platforms , reference , short_name ``` @@ -144,70 +147,6 @@ landsat_image <- get_landsat_imagery( end_date = "2022-08-30", output_filename = tempfile(fileext = ".tif") ) -#> ext 0: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 1: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 2: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 3: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 4: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 5: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 6: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 7: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 0: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 1: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 2: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 3: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 4: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 5: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 6: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 7: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 0: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 1: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 2: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 3: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 4: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 5: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 6: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 7: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 0: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 1: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 2: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 3: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 4: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 5: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 6: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 7: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 0: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 1: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 2: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 3: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 4: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 5: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 6: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 7: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 0: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 1: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 2: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 3: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 4: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 5: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 6: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 7: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 0: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 1: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 2: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 3: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 4: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 5: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 6: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 7: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 0: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 1: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 2: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 3: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 4: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 5: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 6: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 -#> ext 7: 1.66848e+06 1.67049e+06 2.52827e+06 2.53028e+06 terra::plot(terra::rast(landsat_image)) ``` @@ -289,7 +228,7 @@ other multi-band rasters from various data sources. ## Contributing -We love contributions! See our [contribution +We love contributions\! See our [contribution guide](https://github.com/Permian-Global-Research/rsi/blob/main/.github/CONTRIBUTING.md) for pointers on how to make your contribution as easy to accept as possible – in particular, consider [opening an diff --git a/cran-comments.md b/cran-comments.md index 4fa6d19..1cab9f1 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,5 +1,5 @@ -This is the sixth CRAN release of rsi. The package has now been reviewed -by rOpenSci and contains improvements stemming from that review. +This is the seventh CRAN release of rsi, fixing a test error that +arose on CRAN. ## R CMD check results diff --git a/man/figures/README-unnamed-chunk-3-1.png b/man/figures/README-unnamed-chunk-3-1.png index 94ddb2d..2adde43 100644 Binary files a/man/figures/README-unnamed-chunk-3-1.png and b/man/figures/README-unnamed-chunk-3-1.png differ diff --git a/man/figures/README-unnamed-chunk-4-1.png b/man/figures/README-unnamed-chunk-4-1.png index 78c4c87..55f6e7a 100644 Binary files a/man/figures/README-unnamed-chunk-4-1.png and b/man/figures/README-unnamed-chunk-4-1.png differ diff --git a/man/figures/README-unnamed-chunk-5-1.png b/man/figures/README-unnamed-chunk-5-1.png index 7ede702..5b8806e 100644 Binary files a/man/figures/README-unnamed-chunk-5-1.png and b/man/figures/README-unnamed-chunk-5-1.png differ diff --git a/man/figures/README-unnamed-chunk-7-1.png b/man/figures/README-unnamed-chunk-7-1.png index 0cdcf68..a5a086d 100644 Binary files a/man/figures/README-unnamed-chunk-7-1.png and b/man/figures/README-unnamed-chunk-7-1.png differ diff --git a/man/figures/README-unnamed-chunk-8-1.png b/man/figures/README-unnamed-chunk-8-1.png index 9204436..5db76a1 100644 Binary files a/man/figures/README-unnamed-chunk-8-1.png and b/man/figures/README-unnamed-chunk-8-1.png differ