I'm receiving an error from roxygenize()
that I can't understand. I have a package of my miscellaneous functions in which the .Rd files are generated via roxygen.
The error is Error: titlerequires a value
, which suggests that there is no @title
tag. However there is an @title
tag in the kmmisc-package.R
file, so I'm not sure what the problem is.
kmmisc-package.R
contains:
##' Miscellaneous Functions
##'
##' \tabular{ll}{
##' Package: \tab kmmisc\cr
##' Type: \tab Package\cr
##' Version: \tab 0.1-2\cr
##' Date: \tab 2011-10-06\cr
##' License: \tab GPL-2\cr
##' LazyLoad: \tab yes\cr
##' LazyData: \tab yes\cr
##' }
##'
##' @author Me \email{my@@email}
##'
##' Maintainer: Me \email{my@@email}
##'
##' @name kmmisc-package
##' @docType package
##' @title KM Misc
##' @keywords package
##'
NULL
I'm using R 2.13.2 with roxygen2 2.1 just reinstalled from CRAN. The complete sessionInfo()
is in the gist at https://gist.github.com/1268056
Edit
At @andrie's suggestion, I now have
#' Miscellaneous Functions
#'
#' \tabular{ll}{
#' Package: \tab kmmisc\cr
#' Type: \tab Package\cr
#' Version: \tab 0.1-2\cr
#' Date: \tab 2011-09-14\cr
#' License: \tab GPL-2\cr
#' LazyLoad: \tab yes\cr
#' LazyData: \tab yes\cr
#' }
#'
#' @author Me \email{my@@email}
#'
#' Maintainer: Me \email{my@@email}
#' @name package-kmmisc
#' @docType package
#' @title KM Misc
#' @keywords package
#' @aliases kmmisc package-kmmisc
#'
#'
NULL
which is still generating the same error.
maintainer
doesn't have an@
. Does this make a difference? – Undoubtedroxygen2
. I found this to be more a bit more forgiving and helpful in its hints when it encounters errors in the roxygen lines. – UndoubtedR
directory, right? Have you checked other R scripts to make sure there are no empty@title
tags or empty first lines? – Gomuti