ropensci / rnoaa

Compare 7511457 ... +0 ... d4f74d8

Showing 1 of 4 files from the diff.
Other files ignored by Codecov

@@ -169,11 +169,15 @@
Loading
169 169
  tmp
170 170
}
171 171
172 +
# This function is only used in lcd(), see R/lcd.R
172 173
safe_read_csv <- function(x, header = TRUE, stringsAsFactors = FALSE, sep = ",") {
173 174
  assert(x, "character")
175 +
  # here setting the column SOURCE to char b/c it is sometimes read in as integer
176 +
  # or numeric, but should always be character
174 177
  tmp <- tryCatch(
175 -
    read.csv(x, header = header, sep = sep,
176 -
      stringsAsFactors = stringsAsFactors),
178 +
    data.table::fread(x, header = header, sep = sep, 
179 +
      stringsAsFactors = stringsAsFactors, data.table = FALSE,
180 +
      colClasses = c(SOURCE="character")),
177 181
    error = function(e) e,
178 182
    warning = function(w) w
179 183
  )

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R 0.03% 37.37%
Project Totals (47 files) 37.37%
Loading