file_fn: Return the appropriate function for reading the specified...

View source: R/utils_file_io.R

file_fnR Documentation

Return the appropriate function for reading the specified path/extension

Description

Return the appropriate function for reading the specified path/extension

Usage

file_fn(x, write = FALSE)

Arguments

x

(character) The extension name or the path to the file

write

(logical) Return the writing function? Default FALSE to return the reading function

Value

(function)

See Also

Other file IO: col_types(), dep_read(), dep_write(), dir_fn(), dirs, ext(), is_filepath(), last_updated(), list.files2(), load_obj(), make_names(), mkpath(), move_files_to_folder(), needs_update(), object_fn(), object_write(), package_size(), write_dir_fn(), write_lines()

Examples

file_fn("csv")
file_fn("csv", write = TRUE)

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.