Description Usage Arguments Details Value See Also Examples
Read and parse .ini file to list
1 |
filepath |
file to parse |
encoding |
Encoding of filepath parameter, will default to system encoding if not specifield |
Lines starting with '#' or ';' are comments and will not be parsed
List with length equivalent to number of [sections], each section is a new list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Create a new temp ini for reading
iniFile <- tempfile(fileext = '.ini')
sink(iniFile)
cat("; This line is a comment\n")
cat("# This one too!\n")
cat("[ Hello World]\n")
cat("Foo = Bar \n")
cat("Foo1 = Bar=345 \n")
sink()
## Read ini
checkini <- read.ini(iniFile)
## Check structure
checkini
checkini$`Hello World`$Foo
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.