From 5a0b443d6e48c70d471c9aa9e90d7b07b3825d28 Mon Sep 17 00:00:00 2001 From: Jure Demsar Date: Fri, 20 Nov 2020 13:40:27 +0100 Subject: [PATCH] - Linear test optimization. --- CRAN-RELEASE | 2 -- DESCRIPTION | 4 +-- NEWS.md | 47 ++++++++++++++++++++---------------- cran-comments.md | 25 +++++++++++-------- tests/testthat/test_linear.R | 2 +- 5 files changed, 44 insertions(+), 36 deletions(-) delete mode 100644 CRAN-RELEASE diff --git a/CRAN-RELEASE b/CRAN-RELEASE deleted file mode 100644 index c5661b4..0000000 --- a/CRAN-RELEASE +++ /dev/null @@ -1,2 +0,0 @@ -This package was submitted to CRAN on 2020-02-17. -Once it is accepted, delete this file and tag the release (commit 0f4d29ef6c). diff --git a/DESCRIPTION b/DESCRIPTION index 2dcbe1a..8396c6d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: bayes4psy -Version: 1.2.3 +Version: 1.2.4 Title: User Friendly Bayesian Data Analysis for Psychology Description: Contains several Bayesian models for data analysis of psychological tests. A user friendly interface for these models should enable students and researchers to perform professional level Bayesian data analysis without advanced knowledge in programming and Bayesian statistics. This package is based on the Stan platform (Carpenter et el. 2017 ). Authors@R: @@ -43,6 +43,6 @@ LinkingTo: SystemRequirements: GNU make VignetteBuilder: knitr NeedsCompilation: yes -RoxygenNote: 7.0.2 +RoxygenNote: 7.1.1 URL: https://github.com/bstatcomp/bayes4psy BugReports: https://github.com/bstatcomp/bayes4psy/issues diff --git a/NEWS.md b/NEWS.md index cbdd0c2..8bb3d04 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,25 +1,30 @@ +# bayes4psy 1.2.4 + +## New features and improvements +More robust unit tests for the purpose of CRAN checks. + # bayes4psy 1.2.3 -### New features and improvements +## New features and improvements Additional unit tests for CRAN checks. # bayes4psy 1.2.2 -### New features and improvements +## New features and improvements Further vignettes and tests optimizations. Added references to the description. # bayes4psy 1.2.1 -### New features and improvements +## New features and improvements Vignettes optimizations. # bayes4psy 1.2.0 -### New features and improvements +## New features and improvements Added detailed examples of usage as vignettes. All models now create visualizations with the default R plot function. Several minor tweaks and improvements. @@ -27,7 +32,7 @@ Several minor tweaks and improvements. # bayes4psy 1.1.1 -### New features and improvements +## New features and improvements Modified some examples due to CRAN revision. Beautified some outputs. T-test now supports comparison through the sigma parameter only. @@ -35,7 +40,7 @@ T-test now supports comparison through the sigma parameter only. # bayes4psy 1.1.0 -### New features and improvements +## New features and improvements Examples for all models and fitting functions. Code tests for all core functions. Documentation amended in accordance with CRAN team comments. @@ -43,20 +48,20 @@ Documentation amended in accordance with CRAN team comments. # bayes4psy 1.0.2 -### New features and improvements +## New features and improvements Compilation is now c++14 compliant. Minor update to one of color visualizations. # bayes4psy 1.0.1 -### New features and improvements +## New features and improvements Ran CRAN checks (spell check, ...) and fixed some minor issues according to feedback. # bayes4psy 1.0.0 -### New features and improvements +## New features and improvements Greatly expanded the readme file. Minor changes to a few documentation entries. CRAN publish preparations. @@ -64,7 +69,7 @@ CRAN publish preparations. # bayes4psy 0.9.0 -### New features and improvements +## New features and improvements Various quality of life improvements (nicer graphs and outputs). Package is not in its own repository so it can be installed from GitHub via devtools. Upgraded all examples and tests. @@ -73,14 +78,14 @@ Examples and tests are now in a separate repository. # bayes4psy 0.8.0 -### New features and improvements +## New features and improvements Renamed package from EasyBayes to bayes4psy. Parameters are no longer permuted when extracted from a Stan fit. # bayes4psy 0.7.0 -### New features and improvements +## New features and improvements Functions for comparing multiple fits at the same time. Revised prior system so it is now more user friendly. Implementation of Bayesian t-test. @@ -88,7 +93,7 @@ Implementation of Bayesian t-test. # bayes4psy 0.6.0 -### New features and improvements +## New features and improvements Flexible setting of priors on all of the model's parameters. The plot_fit function for hierarchical models now allows visual inspection of a fit on top and bottom levels. Added functions for easy extraction of parameter values. @@ -96,7 +101,7 @@ Added functions for easy extraction of parameter values. # bayes4psy 0.5.0 -### New features and improvements +## New features and improvements Color model implementation. Specific visualizations for colors. Success rate hierarchical model rework. @@ -106,7 +111,7 @@ Multiple chains support. # bayes4psy 0.4.0 -### New features and improvements +## New features and improvements Large update to documentation, which is now CRAN compliant. Added an additional, more detailed diagnostic print of fit. Updates to various visualizations. @@ -116,14 +121,14 @@ Tidyverse style code. # bayes4psy 0.3.0 -### New features and improvements +## New features and improvements Removed all warnings. CRAN ready! # bayes4psy 0.2.0 -### New features and improvements +## New features and improvements Cross platform compilation. Package now passes CRAN checks (with a lot of warnings and notes). Added documentation. @@ -131,7 +136,7 @@ Added documentation. # bayes4psy 0.1.4 -### New features and improvements +## New features and improvements Integrated linear model into the package. Changed version numbering. Using HDI instead of CI now. @@ -139,18 +144,18 @@ Using HDI instead of CI now. # bayes4psy 0.1.3 -### New features and improvements +## New features and improvements Expanded documentation of functions and classes. Consolidate functions and parameter passing between all models. # bayes4psy 0.1.2 -### New features and improvements +## New features and improvements Implementation of the success rate model. # bayes4psy 0.1.1 -### New features and improvements +## New features and improvements Implementation of ttest model. Implementation of reaction times model. diff --git a/cran-comments.md b/cran-comments.md index aa1df6f..0239e23 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,18 +1,23 @@ -## Revisions +# Revisions -### CRAN submission 19. 2. 2020 +## CRAN submission 20. 11. 2020 + +Revised tests to avoid stability issues on Solaris. + + +## CRAN submission 19. 2. 2020 Reran all unit tests manually and corrected all checks. -### CRAN submission 17. 2. 2020 +## CRAN submission 17. 2. 2020 Fixxed errors denoted in the check results report. -### CRAN submission 23. 12. 2019 +## CRAN submission 23. 12. 2019 Everything was OK. -### CRAN submission 19. 6. 2019 +## CRAN submission 19. 6. 2019 1. CRAN: Omit the redundant part "An R Package for" in your title. Please do not start your Description with "This package", package name or similar. Response: Done. @@ -24,15 +29,15 @@ Response: Added function level examples to exported model fitting functions (b_b Response: Authors mentioned above are now added into the Authors@R field. -## Test environments -* local OS X Mojave 10.14.5, R 3.5.3 -* local Windows 10, R 3.5.3 +# Test environments +* local OS X Mojave 10.14.5, R 3.5.4 +* local Windows 10, R 3.5.4 * win-builder (R-devel) * Ubuntu Linux 16.04 LTS (rhub) * Fedora Linux, R-devel (rhub) -## R CMD check results +# R CMD check results There were no ERRORs or WARNINGs. There were 2 NOTES: @@ -46,5 +51,5 @@ There were 2 NOTES: GNU make is a SystemRequirements. -## Downstream dependencies +# Downstream dependencies There are currently no downstream dependencies for this package. diff --git a/tests/testthat/test_linear.R b/tests/testthat/test_linear.R index ef692f7..7ff9b98 100644 --- a/tests/testthat/test_linear.R +++ b/tests/testthat/test_linear.R @@ -5,7 +5,7 @@ seed <- 0 set.seed(0) # set tolerance -tol <- 0.2 +tol <- 0.5 # priors mu_prior <- b_prior(family="normal", pars=c(0, 100))