InfoManipulation | R Documentation |
Add/Remove lines to HYPE info.txt files
AddInfoLine(info, name, value, after = NULL)
RemoveInfoLine(info, name)
info |
Named list containing the info.txt file data, typically created using |
name |
Name of info.txt code to add/remove. |
value |
Value of the info.txt code to add/remove. |
after |
String vector containing the name(s) of info.txt codes that the new info.txt code should be inserted below.
If multiple values are specified and all codes are present in |
The AddInfoLine
and RemoveInfoLine
functions provide features to add/remove lines to an imported info.txt
file. Info.txt codes can be found on the HYPE Wiki.
AddInfoLine
and RemoveInfoLine
return a named list in the info.txt file structure.
info <- ReadInfo(filename = system.file("demo_model",
"info.txt", package = "HYPEtools"))
info <- AddInfoLine(info, name = "testline", value = "testvalue")
info <- RemoveInfoLine(info, name = "testline")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.