I have a question how to get a value of a function's arguments apart from reading a help pages ?
For example : str()
Help says: list.len = 99
Is it an alternative way to do it ?
formals, but don't think it will show for all functions. It does for
ls, but not for
> formals(ls) $name $pos -1L $envir as.environment(pos) $all.names  FALSE $pattern $sorted  TRUE >
If I may ask, why can't you get the default arguments values from documentation? How exactly do you want to use these programmatically?
I do not need to do anything programmatically. I just thought that maybe a function exists that could list defaults out in a quick way.