andybega / icews

Get the ICEWS event data
https://www.andybeger.com/icews/
Other
23 stars 2 forks source link

Accommodate length 0 result for daily repo #56

Closed andybega closed 4 years ago

andybega commented 4 years ago

Did not plan for the possibility that there are no new updates in the daily/now weekly repo. This breaks the current tibble code in get_dvn_manifest(), Part of #54.

dvn_files <- list(content = list(list(), structure(list(), .Dim = c(0L, 2L), .Dimnames = list(NULL, c("",    "f")))))
tibble::tibble(
      repo = "daily",
      label = dvn_files$content[[2]]$files$label,
      id = dvn_files$content[[2]]$files$id,
      category = "Data",
      description = dvn_files$content[[2]]$files$description
    )
Error: Input must be a vector, not NULL.