R: Write list to .ini file

write.ini {ini} | R Documentation

## 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

    ## 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)

[Package ini version 0.3.0 Index]