Skip to content

Commit

Permalink
fix reference to data.table
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Sep 25, 2018
1 parent f3dc7d5 commit c9285ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/S3.R
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pander.data.table <- function(x, caption = attr(x, 'caption'),
}

requireNamespace('data.table', quietly = TRUE)
xx <- copy(x)
xx <- data.table::copy(x)
if (keys.as.row.names && data.table::haskey(xx)) {
firstkey <- data.table::key(xx)[1]
row.names.dt <- as.character(xx[[firstkey]])
Expand Down

0 comments on commit c9285ea

Please sign in to comment.