roxygen docs中的任意部分 - Arbitrary sections in roxygen docs

問題:

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。


解決方案:

參考: https://stackoom.com/en/question/M8Py
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章