Skip to content

Commit

Permalink
fix #234 convert dplyr::data_frame to data.frame
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Dec 8, 2015
1 parent b209540 commit 29dd300
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/pandoc.R
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,11 @@ pandoc.table.return <- function(t, caption, digits = panderOptions('digits'), de
}
}
}

## converting a table to intermediate representation
if (inherits(t, 'tbl_df')) {
t <- as.data.frame(t)
}
if (length(dim(t)) > 2){
t <- ftable(t)
} else if (length(dim(t)) < 2) {
Expand Down

0 comments on commit 29dd300

Please sign in to comment.