From b9a1f85e32ecd089e8003233673b79df428b1c95 Mon Sep 17 00:00:00 2001 From: Josh Yamamoto Date: Tue, 13 Feb 2024 13:19:01 -0600 Subject: [PATCH] add cran badge --- .Rbuildignore | 1 + README.Rmd | 1 + README.md | 21 ++++++++------------- cran-comments.md | 26 ++++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 13 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index fbfb7b6..4302a2d 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -6,3 +6,4 @@ sandbox ^\.github$ ^figs$ ^cran-comments\.md$ +^CRAN-SUBMISSION$ diff --git a/README.Rmd b/README.Rmd index d355ce5..eb441d1 100644 --- a/README.Rmd +++ b/README.Rmd @@ -17,6 +17,7 @@ knitr::opts_chunk$set( [![R-CMD-check](https://github.com/harvard-ufds/saeczi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/harvard-ufds/saeczi/actions/workflows/R-CMD-check.yaml) + [![CRAN status](https://www.r-pkg.org/badges/version/saeczi)](https://CRAN.R-project.org/package=saeczi) ## Overview diff --git a/README.md b/README.md index b43853e..6441afb 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ [![R-CMD-check](https://github.com/harvard-ufds/saeczi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/harvard-ufds/saeczi/actions/workflows/R-CMD-check.yaml) +[![CRAN +status](https://www.r-pkg.org/badges/version/saeczi)](https://CRAN.R-project.org/package=saeczi) ## Overview @@ -70,13 +72,6 @@ result <- saeczi(samp_dat = samp, mse_est = TRUE, B = 500, parallel = FALSE) -#> ================================================================================ -#> • Fitting Models... -#> • Beginning Bootstrap... -#> - Fitting to Bootstrap samples ✓ -#> - Estimating MSE ✓ -#> • Compiling Results... -#> ================================================================================ ``` The function returns the original call, a data frame containing the @@ -96,12 +91,12 @@ few rows of the results: ``` r result$res |> head() #> domain mse est -#> 1 41001 173.58940 14.85495 -#> 2 41003 42.43279 97.74967 -#> 3 41005 581.01815 86.02207 -#> 4 41007 35.98329 76.24752 -#> 5 41009 222.58951 70.28624 -#> 6 41011 213.38928 87.65072 +#> 1 41001 327.73882 14.85495 +#> 2 41003 107.30485 97.74967 +#> 3 41005 268.87257 86.02207 +#> 4 41007 146.77866 76.24752 +#> 5 41009 19.43486 70.28624 +#> 6 41011 90.38764 87.65072 ``` This output format allows for easy results plotting diff --git a/cran-comments.md b/cran-comments.md index 69a7435..f06c20a 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,3 +1,29 @@ +## Resubmission: + +This fills out the description with references and more info and adds full documentation for the main exported function as requested. + +The package has once again been tested on the following systems + +* macos-latest (release) +* windows-latest (devel) +* ubuntu-latest (devel) +* ububtu-latest (release) +* ubuntu-latest (oldrel-1) + +and received + +0 errors | 0 warnings | 0 notes + +The package was also tested on + +* windows-latest (release) + +and received + +0 errors | 0 warnings | 1 note + +where the note had to do with a possibly invalid DOI although I have checked the DOI multiple times and it is valid and does correspond to the paper I am citing. + ## R CMD check results The package has been tested on the following systems