Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not parsing multiple sections in Rd's #25

Open
jpmarindiaz opened this issue May 27, 2017 · 1 comment
Open

Not parsing multiple sections in Rd's #25

jpmarindiaz opened this issue May 27, 2017 · 1 comment

Comments

@jpmarindiaz
Copy link

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!"
@yihui
Copy link
Owner

yihui commented May 29, 2017

joshuaulrich added a commit to joshuaulrich/Rd2roxygen that referenced this issue Mar 21, 2024
Only the first section was being processed. Any later sections were
dropped silently.

Fixes yihui#25.
joshuaulrich added a commit to joshuaulrich/Rd2roxygen that referenced this issue Mar 21, 2024
Only the first section was being processed. Any later sections were
dropped silently.

Fixes yihui#25.
joshuaulrich added a commit that referenced this issue Apr 3, 2024
* Add test Rd file
* Process all sections (#25)
  Only the first section was being processed. Any later sections were
  dropped silently.
* Fix \href{}{} (#22)
* Add \dots and \ldots to single argument macros
* Update news
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants