ini (version 0.3.1)

write.ini: Write list to .ini file

Description

Write list to .ini file

Usage

write.ini(x, filepath, encoding = getOption("encoding"))

Arguments

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

See Also

read.ini

Examples

Run this code
# NOT RUN {
## 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace