scrutiny 0.4.0
This version brings major performance improvements. Furthermore:
Bugfixes
- Fixed a bug in
audit_seq()
: If thedispersion
argument in the preceding call to a function likegrim_map_seq()
was specified as something other than a linearly increasing sequence, the"diff_*"
columns in the data frames returned byaudit_seq()
may have contained incorrect values. - Similarly,
audit_seq()
andreverse_map_seq()
used to reconstruct the reported values incorrectly if thedispersion
default was overridden as described above. At least for now, the issue is handled by throwing an error if these functions operate on data frames that are the result of specifyingdispersion
as something other than a linearly increasing sequence. - Fixed a bug that incorrectly threw an error in
grim_map_seq()
, other functions made byfunction_map_seq()
, as well asseq_disperse()
andseq_disperse_df()
if an input value was so close toout_min
orout_max
that the output sequence would be shorter than implied bydispersion
/.dispersion
, and iftrack_var_change
/.track_var_change
(see below) wasTRUE
. Again, note that the bug only occurred if an error was thrown.
New features
- A new vignette lists the options for specifying the
rounding
argument that many scrutiny functions have:vignette("rounding-options")
. - Another new vignette shows the minimal steps to implement a consistency test using scrutiny:
vignette("consistency-tests-simple")
. - The output of
grim_map_seq()
,grimmer_map_seq()
,debit_map_seq()
and any other function made byfunction_map_seq()
now has adiff_var
column that tracks the difference between the dispersed variable (see thevar
column) and the reported value. Following thediff_*
columns in the output ofaudit_seq()
, this is the number of dispersion steps, not the actual numeric difference. - The same
diff_*
columns are now integer, not double. function_map()
,function_map_seq()
, andfunction_map_total_n()
have a new.name_key_result
argument that controls the name of the key result column in the output of the factory-made function. This is"consistency"
by default, but other names will fit better for other kinds of tests. (The results of these tests must still be logical values.)
Minor changes
- In
duplicate_count()
, thecount
column in the output tibble was renamed tofrequency
. This makes for a more streamlined frequency table and removes an ambiguity withduplicate_count_colpair()
, where thecount
output column means something different. - In
seq_disperse()
andseq_disperse_df()
, thetrack_var_change
/.track_var_change
argument was renamed totrack_diff_var
/.track_diff_var
. The arguments with the old names are still present for now but will be removed in a future version. Also, the unit of these values is now dispersion steps, for consistency withgrim_map_seq()
etc. as well asaudit_seq()
. grim_total()
,grim_ratio()
, andgrim_ratio_upper()
now requirex
to have length 1.- The docs now link to functions when opened in RStudio, not just on the website.
- Accordingly, the output of
write_doc_factory_map_conventions()
now renders links. The function also has a newscrutiny_prefix
argument for use in another package. - The "Infrastructure" article was renamed to "Developer tools";
vignette("devtools")
. - Some dependencies that used to be suggested are now imported.