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

Error in build_reference when empty section #656

Closed
surh opened this issue May 6, 2018 · 0 comments
Closed

Error in build_reference when empty section #656

surh opened this issue May 6, 2018 · 0 comments
Labels
bug an unexpected problem or unintended behavior rd-translation 🎏

Comments

@surh
Copy link

surh commented May 6, 2018

If an .Rd file has a section tag without anything inside, for example if I have \details{},the function build_reference fails with the following error.

Error in rep(TRUE, length(x) - 1)

As far as I can tell, this is due to the flatten_para function, and can be solved by simply removing the empty section tag from the Rd file. However, It would be nice if one could keep the empty sections and build_reference worked.

@hadley hadley added bug an unexpected problem or unintended behavior rd-translation 🎏 labels May 22, 2018
@hadley hadley closed this as completed in 3e8f197 May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior rd-translation 🎏
Projects
None yet
Development

No branches or pull requests

2 participants