问题:
The way Roxygen seems to work is that the first line is the \\title
, everything else is in the \\details
, and then any @foo
directives handle those things. Roxygen似乎工作的方式是第一行是\\title
,其他一切都在\\details
,然后任何@foo
指令处理这些事情。 But R documentation is richer than that. 但R文档比这更丰富。 I can have "\\section{Llamas}{Are they ungulates?}"
in .Rd files. 我可以在.Rd文件中添加"\\section{Llamas}{Are they ungulates?}"
。
But I can't get Roxygen to do anything other than wrap it all in \\details. 但我无法让Roxygen做任何其他事情而不是将其全部包装在\\ details中。 Am I missing something? 我错过了什么吗?
I have a hacky solution, which is to stick an unmatched }
before my \\section
. 我有一个hacky解决方案,就是在我的\\section
之前坚持一个无与伦比的}
。 This then ends the \\details
section. 然后结束\\details
部分。 I then have to not put an ending }
in, because roxygen sticks one in thinking its closing the \\details
. 然后我不得不把一个结尾}
,因为roxygen认为它关闭了\\details
。 Eeeeeurrrrrrrrgh. Eeeeeurrrrrrrrgh。