to_file: Convert an object to a file

Description Usage Arguments

Description

Convert a ggplot, data frame or tibble to a file in a temporary location, and return the file path. The file name will be based on the variable name of the object, and will be given an extension that corresponds to the method by which the file was saved. If a file path corresponding to an existing file is given, then that file path is returned.

Usage

1
2
to_file(obj, data_file_format = "csv", col_names = TRUE,
  image_file_format = "png", file_name = NULL)

Arguments

obj

Either a ggplot, data frame, tibble, or valid file path.

data_file_format

Preferred format for data frames/tibbles when saved to a file.

col_names

Determines if column names (headers) are to be included. Defaults to TRUE.

image_file_format

Preferred format for ggplots and images when saved to a file.

file_name

Sets the name of the saved file, without the extension. If this isn't provided, the name of the 'data' variable will be used. "."


mdneuzerling/RDCOMOutlook documentation built on May 21, 2019, 12:21 p.m.