write.ini {ini} | R Documentation |
Write list to .ini file
write.ini(x, filepath, encoding = getOption("encoding"))
x |
List with structure to be write at .ini file. |
filepath |
file to write |
encoding |
Encoding of filepath parameter, will default to system encoding if not specifield |
## Create a new temp ini for writing iniFile <- tempfile(fileext = '.ini') ## Create a new list holding our INI newini <- list() newini[[ "Hello World" ]] <- list(Foo = 'Bar') ## Write structure to file write.ini(newini, iniFile) ## Check file content ## Not run: file.show(iniFile) ## End(Not run)