Description Usage Arguments Details Value
These function read and write the content of an .ini file and converts to a list.
1 2 3 | readIniFile(file, stringsAsFactors = FALSE)
writeIniFile(x, file, overwrite = FALSE)
|
file |
file path |
stringsAsFactors |
Should string values treated as factors? |
x |
Named list (see details). |
overwrite |
Should the function overwrite the file if it already exists. |
A .ini file has the following structure:
1 2 3 4 5 6 | [section1]
key1 = value1
key2 = value2
[section2]
key3 = value3
...
|
readIniFile converts it to a list with the following format:
1 2 3 4 5 |
writeIniFile do the opposite operation.
A list with an element for each section of the .ini file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.