How do I indicate collate order in Roxygen2?

陌路散爱 提交于 2019-12-01 03:47:32

The include tag is used to state that one file needs another to work. (The name include might not have been the best choice, but such is life). If you want to make sure that file B is loaded before file A, then make sure to @include B in A. Roxygen will take care of ordering the collate field to satisfy your restrictions.

I just figured out that if you add the @include statement at the top of your R file, it will interfere with the next roxygen2 documentation block unless you follow it with a NULL eg

#' @include something.R
NULL

#' Documenting a function
#'
#" It does something...
#'
#' @param ...
#'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!