Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 

README.md

getfunctionargs

Introduction

This is a basic package which provides one function, and add in for R Studio called get_fn_args. This provides an add in option for R Studio, which, when highlighting code, will pick out individual arguments and read them to the console.

The main use case for this is when you have a function with a number of default arguments you want to read in, as in the example in the image below.

We can see that this function has read it in.

You can also call the function directly with get_fn_args("x = 4, y = 7, z = 3")

Installation

Use

devtools::install_git(
  url = "https://github.com/kieranjmartin/getfunctionargs.git",
)

Then in R Studio you can load it as usual or find it on the add in menu

Adding hot keys

It can be annoying to go to the menu, so you can assign a hot key to the command, as in these screenshots.

About

R Studio add in to quickly grab default function arguments

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.