Include data examples in developing R packages

前端 未结 3 391
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 20:35

I am eager to learn how to incorporate data examples as comments written above the functions, such as:

##\' @examples 
##\' ## Set working directory...
##\'          


        
3条回答
  •  半阙折子戏
    2020-12-08 21:23

    Please look at CRAN packages that include data and copy their approach. I just added data to a at-work-only package a few weeks back and it just works...

    For what it is worth, the manual has a section 1.1.5 Data in packages which explains it.

提交回复
热议问题