write_csv_safely | R Documentation |
Wraps write_csv
. If the file already exists,
it will not be overwritten. A message will be printed indicating whether the file
was successfully written or if it already existed.
write_csv_safely(..., file = stop("'file' must be specified"))
... |
Data frame and other arguments,
passed on to |
file |
Path/file name to for output. Required. |
None.
## Not run:
data(mtcars)
mtcars %>%
dplyr::select(gear, mpg, am) %>%
write_csv_safely(file = "mtcars.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.