I am using roxygen2 to document my package, however, I cannot use \dontrun
to avoid running my example code. Here's what I have done:
#' @examples \dontrun {
#' x <- myfunc()
#' }
when W use roxygenize
to generate the docuemnt, and use ?myfunc
to see the actual document, I found the following message on the popup browser window:
Error in fetch(key) : lazy-load database '' is corrupt
And when I rerun roxygenize w
ith @examples completely removed, I got the following message in R terminal:
Warning message: In fetch(key) : internal error -3 in R_decompress1
Any idea how I could fix this? many thanks