Skip to content

rnoaa::lcd() Error in safe_read_csv()  #405

Open
@reblake

Description

@reblake

Issue: Receiving this error.
Error in safe_read_csv(path, col_types = col_types) :
Attempt to override column 34 <> of inherent type 'string' down to 'float64' ignored. Only overrides to a higher type are currently supported. If this was intended, please coerce to the lower type afterwards.

R code that generates the error:

library(rnoaa)
df <- rnoaa::lcd(station = "70341025507", year = 2002)  # year doesn't seem to influence the error 

What used to happen a month ago in early Nov 2021:
The above line of code would download the specified data without errors.

Expected use:
I used to be able to use the above code in a custom function I've written to download and clean data from this station for the years 1999: 2021. I expect I should be able to continue to use the above code in my custom function as it worked in Nov 2021.

Session Info:
R version 4.1.1 (2021-08-10)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux 8.5 (Ootpa)

Matrix products: default
BLAS/LAPACK: /usr/lib64/libopenblas-r0.3.3.so

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] rnoaa_1.3.8 lubridate_1.8.0 stringr_1.4.0 tidyr_1.1.4 rvest_1.0.1

loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 pillar_1.6.4 compiler_4.1.1 tools_4.1.1 digest_0.6.29
[6] jsonlite_1.7.2 lifecycle_1.0.1 tibble_3.1.6 gtable_0.3.0 pkgconfig_2.0.3
[11] rlang_0.4.12 DBI_1.1.1 cli_3.1.0 crul_1.2.0 curl_4.3.2
[16] gridExtra_2.3 httr_1.4.2 dplyr_1.0.7 xml2_1.3.3 generics_0.1.1
[21] vctrs_0.3.8 rappdirs_0.3.3 triebeard_0.3.0 grid_4.1.1 tidyselect_1.1.1
[26] data.table_1.14.2 glue_1.5.1 httpcode_0.3.0 R6_2.5.1 fansi_0.5.0
[31] XML_3.99-0.8 ggplot2_3.3.5 purrr_0.3.4 hoardr_0.5.2 magrittr_2.0.1
[36] urltools_1.7.3 scales_1.1.1 ellipsis_0.3.2 assertthat_0.2.1 colorspace_2.0-2
[41] utf8_1.2.2 stringi_1.7.6 munsell_0.5.0 crayon_1.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions