From cfbc495e82acf36dd5145802bc540648d225d05d Mon Sep 17 00:00:00 2001 From: Romain Francois Date: Thu, 3 Feb 2022 15:07:22 +0100 Subject: [PATCH] import trunc_mat() from tibble:: related to https://github.com/tidyverse/dplyr/pull/6141 --- DESCRIPTION | 6 +++--- NAMESPACE | 1 + R/print.R | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 2262180..64797c8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -7,7 +7,6 @@ Description: Data stored in text file can be processed chunkwise using 'dplyr' c are recorded and executed per data chunk, so large files can be processed with limited memory using the 'LaF' package. License: GPL-2 -LazyData: TRUE BugReports: https://github.com/edwindj/chunked/issues URL: https://github.com/edwindj/chunked Depends: @@ -17,10 +16,11 @@ Imports: utils, rlang, DBI, - progress + progress, + tibble Suggests: testthat, RSQLite, dbplyr -RoxygenNote: 7.1.1 +RoxygenNote: 7.1.2 Encoding: UTF-8 diff --git a/NAMESPACE b/NAMESPACE index 2e087ba..0d0a23a 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -41,5 +41,6 @@ export(write_csv_chunkwise) export(write_table_chunkwise) import(dplyr) import(rlang) +importFrom(tibble,trunc_mat) importFrom(utils,head) importFrom(utils,tail) diff --git a/R/print.R b/R/print.R index 1c17c8f..4564c6f 100644 --- a/R/print.R +++ b/R/print.R @@ -1,3 +1,4 @@ +#' @importFrom tibble trunc_mat #' @export print.chunkwise <- function(x, n=NULL, width=NULL, ...){ h <- if (is.null(n)) head.chunkwise(x) else head.chunkwise(x,n)