简体   繁体   中英

How to create documentation with devtools while building a package?

Well, I want to create a documentation in my package project but I get this error:

library(devtools)
> devtools::document()
Updating varbinq documentation
Loading varbinq
Error: contains a blank line

why when I have no blank line in my function! It looks like this:

#' function which do something
#'
#' @param x a value of something
#' @return a value of something2
#' @examples
#' f(2)
f <- function(x){
  x+2
}

maybe it's because of others functions?

程序包Description文件中有空白行时,可能会发生这种情况。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM