Deafault values of functions arguments

Hi,
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 ?
best,

There is formals, but don't think it will show for all functions. It does for ls, but not for str :slightly_frowning_face:

> formals(ls)
$name


$pos
-1L

$envir
as.environment(pos)

$all.names
[1] FALSE

$pattern


$sorted
[1] 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.