Open muschellij2 opened 3 years ago
Sorry I was on leave and you had a workaround. Then the NCDC API was changed completely so I am just circling back to this. It will be a bit of a slog to get through the ncdc updates but I try to fix this as part of the adjustment to the new API structure. Thanks for sharing the issue.
It would seem that the datasetid is not used in
ncdc_datasets
. The URL creation here https://github.com/ropensci/rnoaa/blob/master/R/ncdc_datasets.r#L52 are not passed asncdc_GET
is called without URL/datasetid
parameters: https://github.com/ropensci/rnoaa/blob/master/R/ncdc_datasets.r#L69Also there is no filtration as the data is done with the data: https://github.com/ropensci/rnoaa/blob/master/R/ncdc_datasets.r#L73
Created on 2021-09-10 by the reprex package (v2.0.0)
Session info
``` r sessioninfo::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R version 4.1.0 (2021-05-18) #> os Debian GNU/Linux 10 (buster) #> system x86_64, linux-gnu #> ui X11 #> language (EN) #> collate C.UTF-8 #> ctype C.UTF-8 #> tz Etc/UTC #> date 2021-09-10 #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date lib source #> assertthat 0.2.1 2019-03-21 [2] CRAN (R 4.1.0) #> cli 3.0.1 2021-07-17 [1] CRAN (R 4.1.0) #> colorspace 2.0-1 2021-05-04 [2] CRAN (R 4.1.0) #> crayon 1.4.1 2021-02-08 [2] CRAN (R 4.1.0) #> crul 1.1.0 2021-02-15 [1] CRAN (R 4.1.0) #> curl 4.3.2 2021-06-23 [1] CRAN (R 4.1.0) #> DBI 1.1.1 2021-01-15 [2] CRAN (R 4.1.0) #> digest 0.6.27 2020-10-24 [2] CRAN (R 4.1.0) #> dplyr 1.0.7 2021-06-18 [2] CRAN (R 4.1.0) #> ellipsis 0.3.2 2021-04-29 [2] CRAN (R 4.1.0) #> evaluate 0.14 2019-05-28 [2] CRAN (R 4.1.0) #> fansi 0.5.0 2021-05-25 [2] CRAN (R 4.1.0) #> fs 1.5.0 2020-07-31 [2] CRAN (R 4.1.0) #> generics 0.1.0 2020-10-31 [2] CRAN (R 4.1.0) #> ggplot2 3.3.4 2021-06-16 [2] CRAN (R 4.1.0) #> glue 1.4.2 2020-08-27 [2] CRAN (R 4.1.0) #> gridExtra 2.3 2017-09-09 [2] CRAN (R 4.1.0) #> gtable 0.3.0 2019-03-25 [2] CRAN (R 4.1.0) #> highr 0.9 2021-04-16 [2] CRAN (R 4.1.0) #> hoardr 0.5.2 2018-12-02 [1] CRAN (R 4.1.0) #> htmltools 0.5.1.1 2021-01-22 [2] CRAN (R 4.1.0) #> httpcode 0.3.0 2020-04-10 [1] CRAN (R 4.1.0) #> jsonlite 1.7.2 2020-12-09 [2] CRAN (R 4.1.0) #> knitr 1.33 2021-04-24 [2] CRAN (R 4.1.0) #> lifecycle 1.0.0 2021-02-15 [2] CRAN (R 4.1.0) #> lubridate 1.7.10 2021-02-26 [2] CRAN (R 4.1.0) #> magrittr 2.0.1 2020-11-17 [2] CRAN (R 4.1.0) #> munsell 0.5.0 2018-06-12 [2] CRAN (R 4.1.0) #> pillar 1.6.1 2021-05-16 [2] CRAN (R 4.1.0) #> pkgconfig 2.0.3 2019-09-22 [2] CRAN (R 4.1.0) #> purrr * 0.3.4 2020-04-17 [2] CRAN (R 4.1.0) #> R6 2.5.1 2021-08-19 [1] CRAN (R 4.1.0) #> rappdirs 0.3.3 2021-01-31 [2] CRAN (R 4.1.0) #> Rcpp 1.0.6 2021-01-15 [2] CRAN (R 4.1.0) #> reprex 2.0.0 2021-04-02 [2] CRAN (R 4.1.0) #> rlang 0.4.11 2021-04-30 [2] CRAN (R 4.1.0) #> rmarkdown 2.9 2021-06-15 [2] CRAN (R 4.1.0) #> rnoaa * 1.3.4 2021-05-19 [1] CRAN (R 4.1.0) #> rstudioapi 0.13 2020-11-12 [2] CRAN (R 4.1.0) #> scales 1.1.1 2020-05-11 [2] CRAN (R 4.1.0) #> sessioninfo 1.1.1 2018-11-05 [2] CRAN (R 4.1.0) #> stringi 1.7.3 2021-07-16 [1] CRAN (R 4.1.0) #> stringr 1.4.0 2019-02-10 [2] CRAN (R 4.1.0) #> tibble 3.1.2 2021-05-16 [2] CRAN (R 4.1.0) #> tidyr 1.1.3 2021-03-03 [2] CRAN (R 4.1.0) #> tidyselect 1.1.1 2021-04-30 [2] CRAN (R 4.1.0) #> triebeard 0.3.0 2016-08-04 [1] CRAN (R 4.1.0) #> urltools 1.7.3 2019-04-14 [1] CRAN (R 4.1.0) #> utf8 1.2.1 2021-03-12 [2] CRAN (R 4.1.0) #> vctrs 0.3.8 2021-04-29 [2] CRAN (R 4.1.0) #> withr 2.4.2 2021-04-18 [2] CRAN (R 4.1.0) #> xfun 0.24 2021-06-15 [2] CRAN (R 4.1.0) #> XML 3.99-0.6 2021-03-16 [2] CRAN (R 4.1.0) #> xml2 1.3.2 2020-04-23 [2] CRAN (R 4.1.0) #> yaml 2.2.1 2020-02-01 [2] CRAN (R 4.1.0) #> #> [1] /home/jupyter/.R/library #> [2] /usr/local/lib/R/site-library #> [3] /usr/lib/R/site-library #> [4] /usr/lib/R/library ```