This function constructs a data frame from a data file using import and uses export to write the data to disk in the format indicated by the file extension.

convert(in_file, out_file, in_opts = list(), out_opts = list())

Arguments

in_file

A character string naming an input file.

out_file

A character string naming an output file.

in_opts

A named list of options to be passed to import.

out_opts

A named list of options to be passed to export.

Value

A character string containing the name of the output file (invisibly).

See also

Luca Braglia has created a Shiny app called rioweb that provides access to the file conversion features of rio through a web browser. The app is featured in the RStudio Shiny Gallery.

Examples