View source: R/append_section_to_ini.R
append_section_to_ini | R Documentation |
Takes a new section in ini format and adds to existing ini.
append_section_to_ini(ini_file, new_section)
ini_file |
file location of config.ini file |
new_section |
named list of the section list |
The new_section must be a named list of the section list. See examples.
No return value. Edits and overwrites input config.ini file.
Tyler Hansen
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.