From 3b8feb6fba6c454f278fd59ed886755181e781ee Mon Sep 17 00:00:00 2001 From: Ben Best Date: Thu, 20 Jul 2023 10:59:24 +0200 Subject: [PATCH] v 0.1.2: Fixed arguments in rerddap::griddap() for rerddap version 1.0.3: x to datasetx; time with as.character(). Fixed article outputs. --- DESCRIPTION | 2 +- NEWS.md | 6 +++++- R/read.R | 2 +- docs/404.html | 2 +- docs/LICENSE-text.html | 2 +- docs/LICENSE.html | 2 +- docs/articles/extractr.html | 32 +++++++++++----------------- docs/articles/index.html | 2 +- docs/authors.html | 2 +- docs/index.html | 2 +- docs/news/index.html | 8 +++++-- docs/pkgdown.yml | 2 +- docs/reference/bbox_ply.html | 2 +- docs/reference/get_ed_dates.html | 2 +- docs/reference/get_ed_dates_all.html | 2 +- docs/reference/get_ed_grds.html | 2 +- docs/reference/get_ed_info.html | 2 +- docs/reference/get_url_ply.html | 2 +- docs/reference/grds_to_ts.html | 2 +- docs/reference/grds_to_ts_cat.html | 2 +- docs/reference/index.html | 2 +- docs/reference/plot_ts.html | 2 +- vignettes/extractr.Rmd | 3 +-- 23 files changed, 43 insertions(+), 44 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3eeb85b..dd89995 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: extractr Title: Extract data from online dataset APIs -Version: 0.1.1 +Version: 0.1.2 URL: https://marinebon.github.io/extractr, https://github.com/marinebon/extractr BugReports: https://github.com/marinebon/extractr/issues diff --git a/NEWS.md b/NEWS.md index 694e7b1..15a40d1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,10 @@ +# extractr 0.1.2 + +* Fixed arguments in `rerddap::griddap()` for rerddap version `1.0.3`: `x` to `datasetx`; `time` with `as.character()`. Fixed article outputs. + # extractr 0.1.1 -* fix `get_ed_raster()`, `grds_to_ts()` so working with [noaa-onms/climate-dashboard](https://github.com/noaa-onms/climate-dashboard) ed_var = "CRW_SST" coral reef watch +* Fix `get_ed_raster()`, `grds_to_ts()` so working with [noaa-onms/climate-dashboard](https://github.com/noaa-onms/climate-dashboard) ed_var = "CRW_SST" coral reef watch # extractr 0.1.0 diff --git a/R/read.R b/R/read.R index 830155d..cc196fc 100644 --- a/R/read.R +++ b/R/read.R @@ -317,7 +317,7 @@ get_ed_grds <- function( url = ed_info$base_url, longitude = c(bb["xmin"], bb["xmax"]), latitude = c(bb["ymin"], bb["ymax"]), - time = c(date, date), + time = c(date, date) |> as.character(), fmt = "nc")) if ("try-error" %in% class(nc)){ diff --git a/docs/404.html b/docs/404.html index 3b2cd88..e237360 100644 --- a/docs/404.html +++ b/docs/404.html @@ -32,7 +32,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index acd9986..a8df728 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/LICENSE.html b/docs/LICENSE.html index d1957c2..0936d88 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/articles/extractr.html b/docs/articles/extractr.html index b8bd2ab..03847f3 100644 --- a/docs/articles/extractr.html +++ b/docs/articles/extractr.html @@ -33,7 +33,7 @@ extractr - 0.1.1 + 0.1.2 @@ -87,9 +87,7 @@

extractr

-# library(extractr) # devtools::install_local()
-devtools::load_all()
-#>  Loading extractr
+library(extractr) # devtools::install_local(force = T) # devtools::load_all()
 #> The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
 #> which was just loaded, will retire in October 2023.
 #> Please refer to R-spatial evolution reports for details, especially
@@ -105,7 +103,6 @@ 

Get regions of interestsif (!require("librarian")) install.packages("librarian") #> Loading required package: librarian -library(librarian) librarian::shelf( dplyr, here, mapview, sf) @@ -118,8 +115,8 @@

Get regions of interestsfk_sf <- bind_rows(fk_roi_sf, fk_sta_sf) mapview(fk_sf)

-
- +
+

Get ERDDAP dataset information @@ -130,11 +127,6 @@

Get ERDDAP dataset information
 ed_info <- get_ed_info("https://coastwatch.pfeg.noaa.gov/erddap/griddap/jplMURSST41mday.html")
-#> 
-#> Attaching package: 'magrittr'
-#> The following objects are masked from 'package:extractr':
-#> 
-#>     extract, set_names
 ed_info
 #> <ERDDAP info> jplMURSST41mday 
 #>  Base URL: https://coastwatch.pfeg.noaa.gov/erddap 
@@ -174,20 +166,20 @@ 

Summarize#> # A tibble: 6 × 4 #> lyr date mean sd #> <chr> <date> <dbl> <dbl> -#> 1 sst_2021.10.16 2021-10-16 -80.5 0.881 -#> 2 sst_2021.11.16 2021-11-16 -80.5 0.881 -#> 3 sst_2021.12.16 2021-12-16 -80.5 0.881 -#> 4 sst_2022.01.16 2022-01-16 -80.5 0.881 -#> 5 sst_2022.02.16 2022-02-16 -80.5 0.881 -#> 6 sst_2022.03.16 2022-03-16 -80.5 0.881

+#> 1 sst_2021.10.16 2021-10-16 29.0 0.116 +#> 2 sst_2021.11.16 2021-11-16 27.2 0.945 +#> 3 sst_2021.12.16 2021-12-16 26.6 1.12 +#> 4 sst_2022.01.16 2022-01-16 25.7 1.25 +#> 5 sst_2022.02.16 2022-02-16 25.0 1.64 +#> 6 sst_2022.03.16 2022-03-16 26.1 0.948

Plot

 plot_ts(ts_csv, "mean", "sd")
-
- +
+
diff --git a/docs/articles/index.html b/docs/articles/index.html index db7c232..6681456 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/authors.html b/docs/authors.html index 10e634f..8c0ed42 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/index.html b/docs/index.html index d0ecf73..cc1e704 100644 --- a/docs/index.html +++ b/docs/index.html @@ -37,7 +37,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/news/index.html b/docs/news/index.html index 0243c8f..36ef687 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 @@ -50,9 +50,13 @@

Changelog

Source: NEWS.md +
+ +
-
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 141708b..781ea84 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -3,5 +3,5 @@ pkgdown: 2.0.7 pkgdown_sha: ~ articles: extractr: extractr.html -last_built: 2023-07-19T18:16Z +last_built: 2023-07-20T08:58Z diff --git a/docs/reference/bbox_ply.html b/docs/reference/bbox_ply.html index 89a7c74..fdd92c0 100644 --- a/docs/reference/bbox_ply.html +++ b/docs/reference/bbox_ply.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2
diff --git a/docs/reference/get_ed_dates.html b/docs/reference/get_ed_dates.html index c8d64d6..8890c33 100644 --- a/docs/reference/get_ed_dates.html +++ b/docs/reference/get_ed_dates.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/reference/get_ed_dates_all.html b/docs/reference/get_ed_dates_all.html index 6aa960a..c289aee 100644 --- a/docs/reference/get_ed_dates_all.html +++ b/docs/reference/get_ed_dates_all.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/reference/get_ed_grds.html b/docs/reference/get_ed_grds.html index 14afbb7..e72412b 100644 --- a/docs/reference/get_ed_grds.html +++ b/docs/reference/get_ed_grds.html @@ -19,7 +19,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/reference/get_ed_info.html b/docs/reference/get_ed_info.html index 778f2a0..d39ae2f 100644 --- a/docs/reference/get_ed_info.html +++ b/docs/reference/get_ed_info.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/reference/get_url_ply.html b/docs/reference/get_url_ply.html index 613e567..a3c47a9 100644 --- a/docs/reference/get_url_ply.html +++ b/docs/reference/get_url_ply.html @@ -21,7 +21,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/reference/grds_to_ts.html b/docs/reference/grds_to_ts.html index c9ab54a..6b65e3f 100644 --- a/docs/reference/grds_to_ts.html +++ b/docs/reference/grds_to_ts.html @@ -18,7 +18,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/reference/grds_to_ts_cat.html b/docs/reference/grds_to_ts_cat.html index 96a82f5..dc8b9f6 100644 --- a/docs/reference/grds_to_ts_cat.html +++ b/docs/reference/grds_to_ts_cat.html @@ -18,7 +18,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/reference/index.html b/docs/reference/index.html index 95985a8..fbe8533 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/docs/reference/plot_ts.html b/docs/reference/plot_ts.html index 7bb973e..455868f 100644 --- a/docs/reference/plot_ts.html +++ b/docs/reference/plot_ts.html @@ -17,7 +17,7 @@ extractr - 0.1.1 + 0.1.2 diff --git a/vignettes/extractr.Rmd b/vignettes/extractr.Rmd index 9488792..a87b1cd 100644 --- a/vignettes/extractr.Rmd +++ b/vignettes/extractr.Rmd @@ -17,8 +17,7 @@ knitr::opts_chunk$set( ``` ```{r setup} -# library(extractr) # devtools::install_local() -devtools::load_all() +library(extractr) # devtools::install_local(force = T) # devtools::load_all() ``` ## Get regions of interests