2014-01-17 21 views
1

我在我的程序包的sysdata.rda文件中有兩個對象(page.heightpage.width)。我與roxygen2證明他們這樣使用roxygen2導出sysdata.rda中的多個對象

#'@name page.height 
#'@aliases page.width 
#'@title Standard dimensions 
#'\itemize{ 
#' \item{page.height}{Maximal height of a figuur (in inch)} 
#' \item{page.width}{Width of a figure covering two columns (in inch)} 
#'} 
#'@docType data 
#'@export 
#'@usage page.height 
#'@keywords datasets 
NULL 

page.height對象是出口,但page.width對象不是。我應該如何記錄這些信息,以便將它們導出並記錄在同一個幫助文件中?

回答

5

我發現它的Roxygen2文檔中:明確命名對象導出

#'@export page.height page.width 
+0

如果要導出和記錄數據,而不是它應該是在/ data文件夾的外部數據,而不是在sysdata.rda中? – jtr13