object_fn: Return the appropriate function for writing the supplied...

View source: R/utils_file_io.R

object_fnR Documentation

Return the appropriate function for writing the supplied object to disk

Description

Return the appropriate function for writing the supplied object to disk

Usage

object_fn(x, filepath)

Arguments

x

(object)

Details

  • data.frame/matrix write_feather

  • ggplot ggsave

  • anything else saveRDS

Value

(function) See details for which function

See Also

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

Examples

object_fn(1:15)

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