Running example code from help viewer pane

Hello,

I thought I remembered that there was a way to run example code from the help viewer pane in your R console using the IDE. But I can't seem to find anything about this online or on the IDE cheatsheet. Does it exist or am I imagining things? Obviously I can just copy and paste, of course, too.

Thanks,
Alison

You're not imagining things! It's a super helpful feature that I :heart: a lot! You select the code in the Help pane and hit Ctrl+Enter or Command+Enter (depending on your system), just like running a line of code from the Source pane.

Here's the blog post:
https://blog.rstudio.com/2017/09/13/rstudio-v1.1---the-little-things/

4 Likes