Skip to content

Not parsing multiple sections in Rd's #25

@jpmarindiaz

Description

@jpmarindiaz

Consider this Rd as per this stack overflow question https://stackoverflow.com/questions/5275578/arbitrary-sections-in-roxygen-docs

\name{llama}
\alias{llama}
\title{Llama llama llama}
\usage{
  llama(notused)
}
\arguments{
  \item{notused}{A parameter that isn't used at all!}
}
\description{
  More about llamas
}
\section{Llamas}{
  Are they ungulates?
}

\section{Not llamas}{
  This section is not about llamas.  It is not very
  interesting.
}

Only the first section is parsed:

Rd2roxygen::parse_file("tmp.Rd")
#> $title
#> [1] "Llama llama llama"
#> 
#> $usage
#> [1] "\n  llama(notused)\n"
#> 
#> $desc
#> [1] "\n    More about llamas\n    "
#> 
#> $section
#> [1] "Llamas: \n    Are they ungulates?\n    "
#> 
#> $author
#> character(0)
#> 
#> $name
#> [1] "llama"
#> 
#> $keywords
#> list()
#> 
#> $params
#> [1] "notused A parameter that isn't used at all!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions