Deafault values of functions arguments

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 ?

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)





[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.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.