A function to write import specifications to the file system. The function accepts a specifications object and a full or relative path. The function returns the full file path. This function is useful so that you can define import specifications once, and reuse them in multiple programs or across multiple teams.

write.specs(x, dir_path = getwd(), file_name = NULL)



A specifications object of class 'specs'.


A full or relative path to save the specs. Default is the current working directory.


The file name to save to specs, without a file extension. The file extension will be added automatically. If no file name is supplied, the function will use the variable name as the file name.


The full file path.

See also

Other specs: import_spec(), print.specs(), read.specs(), specs()