Skip to content
This repository was archived by the owner on Aug 26, 2020. It is now read-only.
This repository was archived by the owner on Aug 26, 2020. It is now read-only.

Error in (rowheader + 1):(length(x) - 1) : argument of length 0 #10

@Schuch666

Description

@Schuch666

Hi,

I'm trying to run the README.md example but I got this error wen trying to import data:

------------------------------
station: 83936
OK (HTTP 200).
Error in (rowheader + 1):(length(x) - 1) : argument of length 0

My code is:

stations <- c("Santa Maria", "Macapá")
stations_rows <- pmatch(stations, bdmep_meta$name)
stns_codes <- bdmep_meta[stations_rows, "id"] 
# the line that returns this error
met_data <- bdmep_import(id      = stns_codes,
                         sdate   = "01/01/2012", 
                         edate   = "01/02/2012",
                         destdir = 'C:/',
                         email   = "user@gmail.com",
                         passwd  = "666",
                         verbose = T)

Is this problem related to the code (in the example)? or with any change in the location or format of the data (I saw that the site has changed its address)?

Thank you,
Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions