Skip to content

Commit

Permalink
Untracked: fix warnings [revdep skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
chschan committed Apr 26, 2022
1 parent 81c9ea3 commit 80808a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ License: GPL-3
LazyData: TRUE
Suggests: testthat,
flipExampleData
Depends: R (>= 2.10)
Imports: rpart,
partykit,
flipData (>= 1.1.3),
Expand Down
2 changes: 1 addition & 1 deletion R/cart.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ CART <- function(formula,
subset <- eval(substitute(subset), data, parent.frame())
if (!is.null(subset))
{
if (is.null(subset.description) | (class(subset.description) == "try-error") | !is.null(attr(subset, "name")))
if (is.null(subset.description) || inherits(subset.description, "try-error") || !is.null(attr(subset, "name")))
subset.description <- Labels(subset)
if (is.null(attr(subset, "name")))
attr(subset, "name") <- subset.description
Expand Down

0 comments on commit 80808a7

Please sign in to comment.