Changelog
Source:NEWS.md
qwraps2 0.6.1
- bug fix in qroc - use
geom_pathinstead ofgeom_line - extend return section of
confusion_matrixto fix CRAN NOTE
qwraps2 0.6.0
CRAN release: 2023-11-09
General Improvements
- Unit testing is done in base R, moved away from testthat.
- Updating roxygen dependencies to correctly document the package.
- Extend documentation and testing of
set_diff - The default value for
conf_intinqacfhas been modified from0.05to1 - getOption("qwraps2_alpha", 0.05) -
ggplot2_extract_legendis now and S3 method -
qableis now and S3 method and has gained a new argumentkable_argsto make it clear what values are used byqableand which are passed toknitr::kable(#84) -
summary_tablehas gained two arguments,qable_argsandkable_argsto help with passing through arguments and being able to use the features of knitr::kable (#84) - vignettes have been renamed to have a consistent “qwraps2-
” structure. -
summary_tablehas it’s own vignette.
New Features
mean_seto provide the mean and standard error of the mean in the same format as themean_sdfunction.Add Precision-Recall curve,
qprc, to complement ROC,qroc.Add quick “restricted mean survival time,”
qrmstmethod.-
Binary Operators:
-
%s%for “adding” strings together, e.g.,"A" %s% "B" %s% "C"is equivalent topaste0("A", "B", "C")
-
add
appendargument tofrmt
User Visible Changes
qablehas been modified to return a character matrix with the S3 classqwraps2_qable. Aprintmethod has been added as a wrapper toknitr::kableto generate the table with the wanted markup. This change will allow end users to modify the matrix generated byqableand print the markup results with ease. This will be particularly useful when usingsummary_tableand added bespoke p-values to the rows in a “table 1.”spin_commentsreturnsTRUEorFALSEwith the notes on the matching/mismatched comments as an attribute of the return object.Extend the S3 methods provided for
qroc_build_data_framePotentially breaking Change
confusion_matrixhas been undergone a major refactor. If nothing else, the return object is now a data.frame with more output than before. The inputs are hopefully easier for end users as well. This change includes the addition of the functionaucand major refactor ofqrocandqprc.
Deprecated / Removed
summary_table_042andtab_summary, the tidyverse versions of summary table that had been deprecated have been removed from the package. (#96)qroc_build_data_frameas been deprecated in favor ofauc
qwraps2 0.5.1
CRAN release: 2021-03-01
Bug Fixes
- Correct error in output of bootstrapped results for confusion matrices (#102)
qwraps2 0.5.0
CRAN release: 2020-09-01
New Features
set_diffspin_comments- a tool to identify opening and closing pairs of comments in a .R file expected to go through knitr::spin. Built to help resolve the “comments must be put in pair of start and end delimiters” error that can be thrown by knitr::spin.mtcars2is a fully documented data set provided as part of the qwraps2 package.summary_tablehas abyargument and supports summaries by more than one variable.The example data set
mtcars2is now exported as part of the package. The construction of this data set is documented in a new vignette,vignette("qwraps2-data-sets")-
A data set
pefrfor peak expiratory flow rate data from Martin and Altman- has been added to the package. Documentation of the data set is found in the
vignette("qwraps2-data-sets")
- has been added to the package. Documentation of the data set is found in the
Examples, and extended details, for graphics have been added to new vignette
vignette("qwraps2-graphics")
Improvements
-
confusion matrix returns additional statistics (#87)
- F1
- MCC
...passes values arguments tostats::predictviaqrocandqroc_build_data_framereduced the use of non-base R, specifically tidyverse and magrittr, within the base code of qwraps2. Focus on base R methods instead. This will, hopefully, improve long term stability of the package and reduce warnings and error generated by an ever changing tidyverse api. This includes a
byargument (#100), and other notes related to #96, #98, and #71.deprecated the transform argument in
mean_ci– to easy to have bad results come out of that option. Think about the delta method.
qwraps2 0.4.2
CRAN release: 2019-12-02
New Features
If the a variable in a data.frame has an attributed called “label” then that label will be used in the rgroup for
qsummaryandsummary_table, (#74)backtickis provided as a work around for aknitr::spinissue. The function wraps text in backticks so that backticks do not need to be explicitly used in a .R file expected to be spun to .Rmd.
qwraps2 0.4.1
CRAN release: 2019-03-15
Comment out a test due to the change in random number generating for sample. (#72)
qwraps2 0.4.0
CRAN release: 2019-01-14
Improvements:
-
cbind.qwrap2_summary_tablecheck attributes of objects to be combined together. (#56) - Added example to vignette to address the use
tab_summarywith more than one variable, e.g., in asapplycall. (#53) -
qsummarywill return the first (min) and last (max) for variables whereinherit(var, "Date")isTRUE.
Deprecation
tab_summaryhas been deprecated, useqsummaryinstead. A warning message will be given to the user at this time.tab_summarywill be removed completely in a later version.create_pkghas been deprecated and removed from the package. The function was going to need a massive rewrite to deal with changes to devtools and usethis. Effectively, the function would no longer work and this deprecation is just being pragmatic.
qwraps2 0.3.0
CRAN release: 2018-04-17
New Features
Added
lazyload_cache_dirandlazyload_cache_labelsfor (lazy)loading of cached chunks. Very useful for loading cachedknitrcode chunks into an interactive R session.Added
traprulefor a quick way to integrate a numeric vectorAdded
create_pkg: a wrapper aboutdevtools::createwith more defaults that I prefer.Added a
file_check(#50) to check for read access and optionally md5sum of files.Added a
pkg_check(#51) to check if a list of packages are available.Added functions for geometric mean, variance, and standard deviation. (#52) See the summary-statistics vignette for details.
qwraps2 0.2.4
CRAN release: 2016-12-19
qwraps2 0.2.2
CRAN release: 2016-09-27
New Features:
-
summary_tableandtab_summaryadded (#33) - New vignette
vignette("summary-statistics, package = "qwraps2")