Writes a SWAP main file from the passed parameter dataframe, and the passed path to the tables stored as .csv from the parse_swap_file() function. The SWAP main file will be written to the location specified by outpath.

write_swap_file(parameters, table_path, outpath, verbose = F)

Arguments

parameters

dataframe of project parameters as created by parse_swap_file() (dataframe)

table_path

path of project tables as created by parse_swap_file() (string)

outpath

path where to save the swap file (string)

verbose

print status? (flag)

Value

Returns path of written file

Details

This function currently is only intended for the SWAP main file, but will be expanded to handle the other SWAP input files over time.