Skip to content
Permalink
cbf1957ef0
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (15 sloc) 375 Bytes
#' Connection to Arrow Disk Dataset
#'
#' @param parquet_path
#'
#' @return arrow connection
#' @importFrom dplyr rename
#' @importFrom arrow open_dataset
#' @importFrom magrittr %>%
arrow_con <- function(parquet_path) {
arrow::open_dataset(
sources = parquet_path,
format = "parquet"
)
}
mtcars_arr <- arrow_con(parquet_path = "inst/extdata/mtcars.parquet")