# create a temp directory to put example outputs
dd <- tempdir()
basefile <- file.path(dd, "baseline.txt")
repunitsfile <- file.path(dd, "repunits.txt")
# print those
basefile
repunitsfile
# note that in practice you will probably want to specify
# your own filepaths...
# run the function
write_gsi_sim_reference(alewife, 17, basefile, repunitsfile)
Run the code above in your browser using DataLab