Displaying 1 result from an estimated 1 matches for "cplx_1plus2i".
2014 Jan 19
1
formals() adds 0 to complex function arguments
Dear list,
I'm facing an issue with the automated documentation of a function using
roxygen2. The function has a complex-valued default argument, which is
picked up by roxygen2 using formals() to generate the corresponding Usage
section of the Rd file. Unfortunately, it appears that formals() reformats
complex numbers. Consider the example below,
test <- function(a = 1+2i){}
>