From abcfbf591044f3b925ac342f8ca22abd8c3f72ac Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Thu, 18 Oct 2018 17:07:20 +0200 Subject: [PATCH] fix archive 404 handling --- R/archive.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/archive.R b/R/archive.R index 1cf6cb7..9768674 100644 --- a/R/archive.R +++ b/R/archive.R @@ -97,7 +97,7 @@ archive_fetch_measurements = function (box, sensor, fromDate, toDate, progress) )) if (httr::status_code(res) == 404) - return(as.data.frame) + return(data.frame(createdAt = character(), value = character())) } measurements = httr::content(res, type = 'text', encoding = 'UTF-8') %>%