luomus / finbif
Showing 1 of 1 files from the diff.

@@ -357,10 +357,14 @@
Loading
357 357
358 358
  ind <- is.na(df[[date_time]]) | is.na(date_time_end)
359 359
360 -
  ans <- lubridate::as.interval(rep_len(NA_integer_, length(ind)))
360 +
  ans <- lubridate::interval(
361 +
    rep_len("1970-01-01/1970-01-01", length(ind)), tzone = tzone
362 +
  )
361 363
362 364
  ans[!ind] <- lubridate::interval(df[!ind, date_time], date_time_end[!ind])
363 365
366 +
  ans[ind] <- lubridate::as.interval(NA_integer_)
367 +
364 368
  ans <- lubridate::format_ISO8601(ans, usetz = TRUE)
365 369
366 370
  ans <- ifelse(
@@ -390,7 +394,15 @@
Loading
390 394
    ans
391 395
  )
392 396
393 -
  ifelse(is.na(df[[date_start]]), NA_character_, ans)
397 +
  ifelse(
398 +
    is.na(ans),
399 +
    ifelse(
400 +
      df[[date_start]] == df[[date_end]],
401 +
      df[[date_start]],
402 +
      paste(df[[date_start]], df[[date_end]], sep = "/")
403 +
    ),
404 +
    ans
405 +
  )
394 406
395 407
}
396 408
Files Coverage
R 100.00%
Project Totals (19 files) 100.00%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading