[Roxygen-devel] Missing quotes in default arguments

Manuel J. A. Eugster Manuel.Eugster at stat.uni-muenchen.de
Fri Jun 19 10:42:32 CEST 2009


Hi Charlotte,

thanks for your report of this bug. It is I fixed it in the development
version on R-Forge (the newly build package will be available tomorrow,
a new CRAN version probably appears in mid-July).


Best,

Manuel.



Charlotte Wickham schrieb:
> If my function has an argument with a default value that is quoted the
> quotes don't appear under usage in the .Rd file.
> 
> An example building on the minimal example in the vignette: hello-roxygen.R
> ---------------------
> #' A package to check Roxygen's sanity
> #' @name helloRoxygen-package
> #' @docType package
> NA
> 
> #' a function with a quoted default argument
> print_word <- function(word = "hello"){
>   print(word)
> }
> ---------------------
> So, I'd expect in print_word.Rd:
> \usage{print_word(word="hello")}
> 
> But, after:
> library(roxygen)
> package.skeleton('helloRoxygen', code_files = 'hello-roxygen.R', force = TRUE)
> roxygenize('helloRoxygen', roxygen.dir= 'helloRoxygen',
>     copy.package=FALSE, unlink.target=FALSE)
> 
> the print_word.Rd file has:
> \usage{print_word(word=hello)}
> 
> no quotes.  Am I missing something?  I guess I can always use @usage.
> 
> Charlotte
> _______________________________________________
> Roxygen-devel mailing list
> Roxygen-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel


More information about the Roxygen-devel mailing list