簡體   English   中英

roxygen2無法生成正確的.Rd文件

[英]roxygen2 failed to generate a proper .Rd file

我有這樣的功能:

#' Multiple imputation for repeated binary outcomes
#'
#' @param data Data frame or matrix of multivariate binary outcome with missing values to impute, NA denotes missing values
#' @param cols NULL or a character or integer vector giving the columns for imputation
#' @param nprior integer
#' @param fprior.list a list of prior frequencies. See "Details"
#' @param burnin number of burnin iterations, NULL or positive integer
#' @param rep number of iterations for imputation, default is 10
#' @return list of imputed data frames
#' @export
#' @examples
#' data(polio)
#' milonga(polio, cols=2:7)

milonga<-function(data, cols=NULL, nprior=100, fprior.list=NULL, burnin=NULL, rep=10){
#omit
}

但是,當我使用RStudio使用Roxygen2生成文檔來生成文檔時,出現以下警告和錯誤:

* installing to library ‘/home/dz33/R/x86_64-pc-linux-gnu-library/3.3’
* installing *source* package ‘milonga’ ...
** R
** data
*** moving datasets to lazyload DB
** preparing package for lazy loading
** help
Warning: /data/Private/UVA/SMMR/milonga/man/milonga.Rd:1: All text must be in a section
Error : /data/Private/UVA/SMMR/milonga/man/milonga.Rd: Sections \title, and \name must exist and be unique in Rd files
ERROR: installing Rd objects failed for package ‘milonga’
* removing ‘/home/dz33/R/x86_64-pc-linux-gnu-library/3.3/milonga’
* restoring previous ‘/home/dz33/R/x86_64-pc-linux-gnu-library/3.3/milonga’

Exited with status 1.

當我檢查roxygen2自動生成的milonga.Rd時,它只是顯示:

<environment: 0x3d234c0>

有人知道怎么了嗎?

最終,我發現這是由於Rproj是在網絡驅動器上創建的。 RSudio目前不支持它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM