parse_file: Parse the input Rd file to a list

View source: R/rd2roxygen.R

parse_fileR Documentation

Parse the input Rd file to a list

Description

This function uses the function parse_Rd in the tools package to parse the Rd file.

Usage

parse_file(path)

Arguments

path

the path of the Rd file

Value

a named list containing the documentation sections as strings

Author(s)

Hadley Wickham; modified by Yihui Xie <https://yihui.org>

Examples

rd.file = system.file("examples", "parse_and_save.Rd", package = "Rd2roxygen")
parse_file(rd.file)

yihui/Rd2roxygen documentation built on April 16, 2024, 8:26 a.m.