From 55e6b08239c8ffcbeaa7f46bc915b9258d1ee60b Mon Sep 17 00:00:00 2001 From: aravindhebbali Date: Tue, 5 Nov 2024 21:39:42 +0530 Subject: [PATCH 1/3] fix: deprecation warning --- R/vdist-plots.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/vdist-plots.R b/R/vdist-plots.R index 88d7db9..4fbd47a 100644 --- a/R/vdist-plots.R +++ b/R/vdist-plots.R @@ -89,7 +89,7 @@ bperc_plot_build <- function(data, method, n, p, tp) { } return(plot) - + } cplot_plot_build <- function(data, df, range, normal) { @@ -98,7 +98,7 @@ cplot_plot_build <- function(data, df, range, normal) { ggplot(data$plot_data) + geom_line(aes(x, chi), color = '#4682B4', - size = 2) + + linewidth = 2) + ggtitle(label = "Chi Square Distribution", subtitle = paste("df =", df)) + ylab('') + From d602429ec3d815ec0d2ceaa853d7bdea5df3790b Mon Sep 17 00:00:00 2001 From: aravindhebbali Date: Tue, 5 Nov 2024 22:35:59 +0530 Subject: [PATCH 2/3] fix: deprecation warning --- R/vdist-plots.R | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/R/vdist-plots.R b/R/vdist-plots.R index 4fbd47a..6bd0a94 100644 --- a/R/vdist-plots.R +++ b/R/vdist-plots.R @@ -191,7 +191,7 @@ cperc_plot_build <- function(data, method, probs, df) { plot + geom_vline(xintercept = data$pp, linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = data$point_data, mapping = aes(x = x, y = y), shape = 4, @@ -267,7 +267,7 @@ cprob_plot_build <- function(data, method, perc, df) { gplot + geom_vline(xintercept = perc, linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = data$point_data, mapping = aes(x = x, y = y), shape = 4, @@ -388,7 +388,7 @@ fperc_plot_build <- function(data, probs, num_df, den_df, method) { gplot + geom_vline(xintercept = data$pp[i], linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x, y = y), shape = 4, @@ -472,7 +472,7 @@ fprob_plot_build <- function(data, perc, num_df, den_df, method) { gplot + geom_vline(xintercept = perc[i], linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x, y = y), shape = 4, @@ -615,7 +615,7 @@ nperc_plot_build <- function(data, probs, mean, sd, method) { gplot + geom_vline(xintercept = data$pp[i], linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x, y = y), shape = 4, @@ -720,7 +720,7 @@ nprob_plot_build <- function(data, perc, mean, sd, method) { gplot + geom_vline(xintercept = perc[i], linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x, y = y), shape = 4, @@ -849,7 +849,7 @@ tperc_plot_build <- function(data, probs, df, method) { gplot + geom_vline(xintercept = data$pp[i], linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x, y = y), shape = 4, @@ -910,7 +910,7 @@ tprob_plot_build <- function(data, perc, df, method) { size = 3) + geom_vline(xintercept = perc, linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x, y = y), shape = 4, @@ -939,7 +939,7 @@ tprob_plot_build <- function(data, perc, df, method) { size = 3) + geom_vline(xintercept = perc, linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x, y = y), shape = 4, @@ -974,10 +974,10 @@ tprob_plot_build <- function(data, perc, df, method) { size = 3) + geom_vline(xintercept = perc, linetype = 2, - size = 1) + + linewidth = 1) + geom_vline(xintercept = -perc, linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x1, y = y), shape = 4, @@ -1016,10 +1016,10 @@ tprob_plot_build <- function(data, perc, df, method) { size = 3) + geom_vline(xintercept = perc, linetype = 2, - size = 1) + + linewidth = 1) + geom_vline(xintercept = -perc, linetype = 2, - size = 1) + + linewidth = 1) + geom_point(data = point_data, mapping = aes(x = x1, y = y), shape = 4, From 31ed371b590f1be5b8d069b253ad6d591463f079 Mon Sep 17 00:00:00 2001 From: aravindhebbali Date: Tue, 5 Nov 2024 22:37:54 +0530 Subject: [PATCH 3/3] chore: prep cran release --- DESCRIPTION | 2 +- NEWS.md | 4 ++++ README.Rmd | 2 +- README.md | 2 +- cran-comments.md | 5 ----- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 03c66cc..c04cff3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: vistributions Type: Package Title: Visualize Probability Distributions -Version: 0.1.2.9000 +Version: 0.2.0 Authors@R: person("Aravind", "Hebbali", email = "hebbali.aravind@gmail.com", role = c("aut", "cre")) Description: Visualize and compute percentiles/probabilities of normal, t, f, chi square and binomial distributions. diff --git a/NEWS.md b/NEWS.md index ed97213..f8883f4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# vistributions 0.2.0 + +This is a minor release for bug fixes. + # vistributions 0.1.2 This is a patch release to fix CRAN note about lazy data. diff --git a/README.Rmd b/README.Rmd index 1f161bb..f1e7781 100644 --- a/README.Rmd +++ b/README.Rmd @@ -19,7 +19,7 @@ knitr::opts_chunk$set( [![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/vistributions)](https://cran.r-project.org/package=vistributions) [![R-CMD-check](https://github.com/rsquaredacademy/vistributions/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rsquaredacademy/vistributions/actions/workflows/R-CMD-check.yaml) -[![Coverage Status](https://img.shields.io/codecov/c/github/rsquaredacademy/vistributions/master.svg)](https://codecov.io/github/rsquaredacademy/vistributions?branch=master) +[![Coverage Status](https://img.shields.io/codecov/c/github/rsquaredacademy/vistributions/master.svg)](https://app.codecov.io/github/rsquaredacademy/vistributions?branch=master) ## Installation diff --git a/README.md b/README.md index 1a83d59..2c4f773 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ [![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/vistributions)](https://cran.r-project.org/package=vistributions) [![R-CMD-check](https://github.com/rsquaredacademy/vistributions/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rsquaredacademy/vistributions/actions/workflows/R-CMD-check.yaml) [![Coverage -Status](https://img.shields.io/codecov/c/github/rsquaredacademy/vistributions/master.svg)](https://codecov.io/github/rsquaredacademy/vistributions?branch=master) +Status](https://img.shields.io/codecov/c/github/rsquaredacademy/vistributions/master.svg)](https://app.codecov.io/github/rsquaredacademy/vistributions?branch=master) ## Installation diff --git a/cran-comments.md b/cran-comments.md index 9325a47..fbd8382 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,8 +1,3 @@ -## Test environments -* local Windows 10 install, R 4.0.4 -* ubuntu 14.04 (on GitHub Actions), R 4.1.0, R-devel -* win-builder (devel and release) - ## R CMD check results 0 errors | 0 warnings | 0 note