Learn R Programming

rdoxygen (version 1.0.0)

replace_tag: Updates and adds doxygen options in a line string vector

Description

Scans the lines and changes the value for the named tag if one line has this tag, adds a line at the end if no line has this tag and returns a warning if several lines match the tag.

Usage

replace_tag(fileStrings, tag, newVal)

Arguments

fileStrings
A vector with each string containing a line of the file
tag
A string with the tag to be searched for
newVal
A string with the new value for the tag

Value

The vector of strings with the new value