append_section_to_ini {HodgesTools} | R Documentation |
Append section to ini file
Description
Takes a new section in ini format and adds to existing ini.
Usage
append_section_to_ini(ini_file, new_section)
Arguments
ini_file |
file location of config.ini file |
new_section |
named list of the section list |
Details
The new_section must be a named list of the section list. See examples.
Value
No return value. Edits and overwrites input config.ini file.
Author(s)
Tyler Hansen
Examples
#list of key-value pairs
CHRACC <- list(dir='/chrAcc_peaks/',
peaks='/chrAcc_peaks/GM12878_genrich.narrowPeak')
#list of section, resulting in list of list.
new_section <- list(CHRACC=CHRACC)
#write ini
ini_file <- system.file("extdata", "config.ini")
append_section_to_ini(ini_file, new_section)
[Package HodgesTools version 1.0.0 Index]