Replace a section in an Rd file
Replace a section in an Rd file.
the new text of the section, a character vector.
name of the section.
name of the file.
arguments to be passed on to
Parses the file, replaces the specified section with the new content
and writes the file back. The text is processed as appropriate for the
particular section (
Rdo_set_section("Georgi N. Boshnakov", "author", "./man/Rdo2Rdf.Rd")
(Some care is needed with the author field for "xxx-package.Rd" files, such
as "Rdpack-package.Rd", where the
Author(s) field has
somewhat different layout.)
Rdo_set_section does not create the section if it
does not exist since this may not be desirable for some Rd files. The
"..." arguments can be used to change this, they are passed on to
Rdo_modify, see its documentation for details.
This function is used mainly for the side effect of changing
It returns the Rd formatted text as a character vector.
This is probably the only function in the package that changes an Rd file in-place.
Georgi N. Boshnakov
1 2 3 4 5 6 7 8 9 10
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.