jessica
jessica

Reputation: 1355

Inputs into R Functions an easier display

Is there a shortcut one could employ to find out all the inputs that go into a R function with each's respective description? I know you can always ?function.name, but the help manual opens up either in a web browser or if your using R studio to the right of the screen. Are there any shortcut that let you either see just the inputs or the help description straight into the console?

Upvotes: 2

Views: 90

Answers (2)

lebatsnok
lebatsnok

Reputation: 6459

args(function_name)
# prints a list of arguments
# not helpful if you're using the function for the first time and have no idea but
# very useful if you just need a quick reminder e.g how the arguments are named

BTW when installing R you can choose whether you want help to be displayed as HTML or in a text-based window within R. (But first you have to choose "custom" instead of "typical" [?] install.)

Upvotes: 1

Martin Morgan
Martin Morgan

Reputation: 46856

Maybe setting options(help_type="text"), perhaps in .Rprofile, except in Rstudio where I don't know a solution. See ?help.

Upvotes: 1

Related Questions