Skip to content

Commit

Permalink
various updates to comply with CRAN maintainer's requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiquet committed Aug 23, 2022
1 parent 976e7f1 commit 9293ec3
Show file tree
Hide file tree
Showing 20 changed files with 354 additions and 358 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ BugReports: https://github.com/pln-team/PLNmodels/issues
License: GPL (>= 3)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1
Depends: R (>= 3.4)
LazyData: true
biocViews:
Expand Down
4 changes: 2 additions & 2 deletions R/PLNLDA.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
PLNLDA <- function(formula, data, subset, weights, grouping, control = list()) {

## look for grouping in the data or the parent frame
if (class(try(eval(grouping), silent = TRUE)) == "try-error") {
if (inherits(try(eval(grouping), silent = TRUE), "try-error")) {
grouping <- try(eval(substitute(grouping), data), silent = TRUE)
if (class(grouping) == "try-error") stop("invalid grouping")
if (inherits(grouping, "try-error")) stop("invalid grouping")
}
grouping <- as.factor(grouping)

Expand Down
2 changes: 0 additions & 2 deletions R/PLNfamily-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#'
#' @inherit PLN details
#'
#' @seealso
#'
#' @rdname PLNfamily
#' @include PLNfamily-class.R
#' @importFrom R6 R6Class
Expand Down
90 changes: 45 additions & 45 deletions man/PLNLDAfit.Rd

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

62 changes: 31 additions & 31 deletions man/PLNPCAfamily.Rd

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

Loading

0 comments on commit 9293ec3

Please sign in to comment.