Added an error to detect when parallel::mcMap() has an error in one of its forked processes.
Added parallelly::availableCores(omit = 1) as the new default for n_cores=.
tv::time_varying() gained a sort= argument, to warn the user that things ought to be sorted when x$datetime is a Date.
Added Peter Martin as a contributor, as he inspired the v2.0.0 rewrite.
tv (< 2.0.0) accidentally silently dropped exposures that had zero (or negative) length. In 2.0.0 this became a non-informative error. It now has an informative error.Added grid.only= argument to time_varying().
Thank you, dplyr for changing your minds. Enforce dplyr (>= 1.1.1).
Added a “How does this actually work” section to the vignette.
multiple = 'all' to one dplyr::inner_join() and one dplyr::left_join().Aggregations are now checked to make sure they exist. This includes, in particular, when the aggregation is NA.
Removed a few imports from the DESCRIPTION that weren’t being used.
Reorganized the help pages.
Added special behavior for when "lookback_end" or "lookback_start" are NA.
The grid now includes "exposure_start" and "exposure_stop".
Added aggregation option "tv_median".
Added tests with testthat.
Updated vignette.
Forced warnings to be printed as they occur, instead of when tv::time_varying() finishes.