Editing a R Function via Console.

I randomly stumped across this feature while fiddling with some code in R today.

This R function doesn’t do anything.

foo <- function(){
}

Instead of opening the R script containing foo, you can type fix(foo) and an editor window for that function will pop and letting you quickly modify it.

Nothing to special today, but this is a pretty neat time saver.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s