Consider the following R function definition, to be documented using roxygen2 (version >=5.0)
#' @title Test Bug
#' @author Daniel Egan
#' @param x
#' @return Nothing
#' @export
#' @examples
#' testFun(x)
testFun <- function(x){
#' Warning1'
return(TRUE)
}
When using devtools::document() to document this, it produces the following error:
Warning messages:
1: @examples [TestFun.R#8]: mismatched braces or quotes
Note that there are DEFINITELY no mismatched braces or quotes in the "examples" section. What is causing this? How can I fix it?