fs_handle_read_path: Handle file path for read methods

View source: R/fs.R

fs_handle_read_pathR Documentation

Handle file path for read methods

Description

Testing lists:

  • TRUE: File must exist

  • FALSE: File does not have to exist

Usage

fs_handle_read_path(con = character(), strict = TRUE)

Arguments

con

(ANY)3 Connection object

strict

(logical)3 TRUE: File must exist | FALSE: File does not have to exist

from

(character)3 File path

Examples

try(fs_handle_read_path(con_fs_csv("test.csv")))
fs_handle_read_path(con_fs_xls("test.xls"), strict = FALSE)
fs_handle_read_path(con_fs_xlsx("test.xlsx"), strict = FALSE)
fs_handle_read_path(con_fs_rds("test.Rds"), strict = FALSE)
fs_handle_read_path(con_fs_arrow("test.arrow"), strict = FALSE)

rappster/laker documentation built on Aug. 15, 2022, 10:13 p.m.