Create a temporary settings file

temp.settings(settings.txt)

Arguments

settings.txt

character vector to be written

Value

character vector written to and read from a temporary file

Details

Uses tempfile function to provide a valid temporary file (OS independent) Useful for testing functions that depend on settings file Reference: http://stackoverflow.com/a/12940705/199217