diff --git a/CRAN-SUBMISSION b/CRAN-SUBMISSION index 1cc7952..5643eb4 100644 --- a/CRAN-SUBMISSION +++ b/CRAN-SUBMISSION @@ -1,3 +1,3 @@ -Version: 1.0.0 -Date: 2023-08-08 19:54:15 UTC -SHA: 679de6193027b5834b975dc7f3e5be111356333a +Version: 1.0.1 +Date: 2026-02-01 21:20:18 UTC +SHA: 6a291b2f02d41dd3ed2b92e06c65ad761c8f8621 diff --git a/DESCRIPTION b/DESCRIPTION index 1cf7873..f6726e7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: randomizr Title: Easy-to-Use Tools for Common Forms of Random Assignment and Sampling -Version: 1.0.0 +Version: 1.0.1 Authors@R: c(person("Alexander", "Coppock", email = "acoppock@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-5733-2386")), person("Jasper", "Cooper", email = "jaspercooper@gmail.com", role = c("ctb"), comment = c(ORCID = "0000-0002-8639-3188")), person("Neal", "Fultz", email = "nfultz@gmail.com", role = c("ctb"), comment = "C version of restricted partitions"), @@ -20,4 +20,4 @@ Suggests: testthat, rmarkdown VignetteBuilder: knitr -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.3 diff --git a/NEWS.md b/NEWS.md index 6d58a42..8ecaec5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# randomizr 1.0.1 + +* CRAN compliance + # randomizr 1.0.0 * Documentation fix diff --git a/cran-comments.md b/cran-comments.md index f422c1a..8dc5358 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,6 +1,6 @@ -## Submission +## Submission Version: 1.0.1 -Small patch +Small patch: SETLENGTH -> lengthgets to come into CRAN compliance ## Test environments * local OS X install (release) diff --git a/man/randomizr.Rd b/man/randomizr.Rd index ba8ac7b..5eaaacf 100644 --- a/man/randomizr.Rd +++ b/man/randomizr.Rd @@ -2,8 +2,29 @@ % Please edit documentation in R/randomizr-package.r \docType{package} \name{randomizr} +\alias{randomizr-package} \alias{randomizr} \title{randomizr} \description{ Easy-to-Use Tools for Common Forms of Random Assignment and Sampling } +\seealso{ +Useful links: +\itemize{ + \item \url{https://declaredesign.org/r/randomizr/} + \item \url{https://github.com/DeclareDesign/randomizr} + \item Report bugs at \url{https://github.com/DeclareDesign/randomizr/issues} +} + +} +\author{ +\strong{Maintainer}: Alexander Coppock \email{acoppock@gmail.com} (\href{https://orcid.org/0000-0002-5733-2386}{ORCID}) + +Other contributors: +\itemize{ + \item Jasper Cooper \email{jaspercooper@gmail.com} (\href{https://orcid.org/0000-0002-8639-3188}{ORCID}) [contributor] + \item Neal Fultz \email{nfultz@gmail.com} (C version of restricted partitions) [contributor] + \item Graeme Blair \email{graeme.blair@gmail.com} (\href{https://orcid.org/0000-0001-9164-2102}{ORCID}) [contributor] +} + +} diff --git a/src/restrictedparts.c b/src/restrictedparts.c index 19d8815..0161649 100644 --- a/src/restrictedparts.c +++ b/src/restrictedparts.c @@ -69,9 +69,7 @@ SEXP randomizr_restrictedparts(SEXP n, SEXP m) { REPROTECT(succ = successor(succ), ipx_succ); } - //no reason to reallocate here - //out = lengthgets(out, jj); - SETLENGTH(out, jj); + out = lengthgets(out, jj); UNPROTECT(2);