Skip to content

Commit

Permalink
preparing CRAN submission of PLNmodels 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiquet committed Mar 5, 2024
1 parent 25d2444 commit a4f1b2a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 28 deletions.
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PLNmodels 1.2.0 (2024-02-24)
# PLNmodels 1.2.0 (2024-03-05)

* new feature: ZIPLN (PLN with zero inflation)
* new feature: ZIPLN (PLN with zero inflation) for standard PLN and PLN Network
* ZIPLN() and ZIPLNfit-class to allow for zero-inflation in the standard PLN model (merge PR #116)
* ZIPLNnetwork() and ZIPLNfit_sparse-class to allow for zero-inflation in the PLNnetwork model (merge PR #118)
* Code factorization between PLNnetwork and ZIPLNnetwork (and associated classes)
Expand Down
10 changes: 2 additions & 8 deletions R/ZIPLN.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,14 @@
#' @examples
#' data(trichoptera)
#' trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
#' myPLN <- PLN(Abundance ~ 1, data = trichoptera)
#' ## Use different models for zero-inflation...
#' myZIPLN_single <- ZIPLN(Abundance ~ 1, data = trichoptera, zi = "single")
#' \dontrun{
#' myZIPLN_row <- ZIPLN(Abundance ~ 1, data = trichoptera, zi = "row")
#' myZIPLN_col <- ZIPLN(Abundance ~ 1, data = trichoptera, zi = "col")
#' ## ...including logistic regression on covariates
#' myZIPLN_covar <- ZIPLN(Abundance ~ 1 | 1 + Wind, data = trichoptera)
#' dplyr::bind_rows(
#' myPLN$criteria,
#' myZIPLN_single$criteria,
#' myZIPLN_row$criteria,
#' myZIPLN_col$criteria,
#' myZIPLN_covar$criteria
#' )
#' }
#' @seealso The class [`ZIPLNfit`]
#' @importFrom stats model.frame model.matrix model.response model.offset terms as.formula
#' @export
Expand Down
26 changes: 16 additions & 10 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,43 @@

Submitting PLNmodels version 1.1.0 to CRAN
Submitting PLNmodels version 1.2.0 to CRAN

Fix various bugs, update package documentation for controlling optimization, better integration of the torch backend, better jackknife estimation for PLN.
new feature: ZIPLN (PLN with zero inflation) for standard PLN and PLN Network

## Tested environments

* tested locally on Ubuntu Linux 22.04.3 LTS, R-release, GCC

* tested remotely with win-builder
- Windows Server 2022, R-devel, 64 bit
- Windows Server 2022, R-release (4.3.2), 64 bit
- Windows Server 2022, R-old (4.2.3), 64 bit
- Windows Server 2022, R-release, 64 bit
- Windows Server 2022, R-old, 64 bit

* tested remotely with github-action
- Linux Ubuntu 22.04, R-release
- Linux Ubuntu 22.04, R-oldrel
- Linux Ubuntu 22.04, R-devel
- Windows Server 2022, R-release, 64 bit
- Windows Server 2022, R-oldrel , 64 bit
- macOS Big Sur 11, R-release
- macOS Big Sur 11, R-oldrel

all status OK except for

* the usual NOTE about libs size (RcppArmadillo)

── R CMD check results ─────────────────────────── PLNmodels 1.1.0 ────
Duration: 4m 32.7s
R CMD check results PLNmod
Duration: 6m 27.6s

❯ checking installed package size ... NOTE
installed size is 11.2Mb
installed size is 23.4Mb
sub-directories of 1Mb or more:
doc 2.0Mb
libs 7.8Mb
data 1.4Mb
doc 2.1Mb
libs 18.3Mb

0 errors ✔ | 0 warnings ✔ | 1 note ✖

R CMD check succeeded

── R CMD check results ─────────────────────────── PLNmodels 1.2.0 ────


10 changes: 2 additions & 8 deletions man/ZIPLN.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4f1b2a

Please sign in to comment.