Skip to content

Commit

Permalink
Fixed a bug with R-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastand committed Dec 12, 2018
1 parent 4692ff2 commit 2dcc5a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ Suggests:
testthat,
lintr,
covr
Remotes:
topepo/caret/pkg/caret,
tidymodels/recipes
URL: http://docs.healthcare.ai
BugReports: https://github.com/HealthCatalyst/healthcareai-r/issues
Encoding: UTF-8
2 changes: 1 addition & 1 deletion R/variable_importance.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ plot.variable_importance <- function(x,
print = TRUE,
... ) {

if ( (is.data.frame(x) && names(x) != c("variable", "importance") ) ||
if ( (is.data.frame(x) & names(x) != c("variable", "importance") ) ||
!is.data.frame(x))
stop("x must be a data frame from get_variable_importance, or at least look like one!")

Expand Down

0 comments on commit 2dcc5a5

Please sign in to comment.