This function uses the function parse_Rd in the tools package to parse the Rd file.
parse_Rd
parse_file(path)
the path of the Rd file
a named list containing the documentation sections as strings
# NOT RUN { rd.file = system.file("examples", "parse_and_save.Rd", package = "Rd2roxygen") parse_file(rd.file) # }
Run the code above in your browser using DataCamp Workspace