From 4e0d1deddc699eac4a31e516e3a9b12cb5a5ccad Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Wed, 3 May 2023 11:22:11 +0200 Subject: [PATCH] Import download.file from utils to suppress note --- r/NAMESPACE | 1 + r/R/io.R | 1 + 2 files changed, 2 insertions(+) diff --git a/r/NAMESPACE b/r/NAMESPACE index 7a8efe0ca308..ba791cb41572 100644 --- a/r/NAMESPACE +++ b/r/NAMESPACE @@ -504,6 +504,7 @@ importFrom(tidyselect,one_of) importFrom(tidyselect,starts_with) importFrom(tidyselect,vars_pull) importFrom(utils,capture.output) +importFrom(utils,download.file) importFrom(utils,getFromNamespace) importFrom(utils,head) importFrom(utils,install.packages) diff --git a/r/R/io.R b/r/R/io.R index b2989de78a16..e952d656f8ca 100644 --- a/r/R/io.R +++ b/r/R/io.R @@ -232,6 +232,7 @@ mmap_open <- function(path, mode = c("read", "write", "readwrite")) { #' @param random_access Logical: whether the result must be a RandomAccessFile #' @return An `InputStream` or a subclass of one. #' @keywords internal +#' @importFrom utils download.file make_readable_file <- function(file, mmap = TRUE, random_access = TRUE) { if (inherits(file, "SubTreeFileSystem")) { filesystem <- file$base_fs