commit | 30b84f5caded640843b4b07bd734889f385778f0 | [log] [tgz] |
---|---|---|
author | Bill Evans <Bill@8PawExpress.com> | Fri Sep 11 09:54:58 2020 -0700 |
committer | Bill Evans <Bill@8PawExpress.com> | Fri Sep 11 09:56:48 2020 -0700 |
tree | c52253d9a0cf60a285e6c10823d49db3a442836a | |
parent | 45709e2c76d227e70411ac588d68af705b8f96cb [diff] [blame] |
fix #519, change from 'class' comparison to 'inherits'
diff --git a/R/xtable2kable.R b/R/xtable2kable.R index 3c13658..478d6f2 100644 --- a/R/xtable2kable.R +++ b/R/xtable2kable.R
@@ -25,7 +25,7 @@ #' #' @export xtable2kable <- function(x, ...) { - if (!class(x)[1] == "xtable") { + if (!inherits(x, "xtable")) { warning("x is not an xtable object.") return(x) }