You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running examples from the help pane also executes R markdown code chunk #12959
RStudio Edition : Desktop
RStudio Version : 2023.03.0 (Build 386)
OS Version : Windows
R Version : 4.1.3
Steps to reproduce the problem
Have an R markdown document open and run code from the help pane.
Describe the problem in detail
When an R markdown document is open and you highlight code from the examples section in the help pane and use Ctrl + Enter to execute that code in the console, it not only runs the example code but also sends the line of text / code chunk where your cursor is standing in the R markdown document to the console.
See the screen recording for an illustration:
Describe the behavior you expected
Highlighting and executing code from the help pane should only execute that code and not the code in the R markdown where your cursor is standing.
Activity
mine-cetinkaya-rundel commentedon Apr 9, 2023
I'm seeing the same thing with RStudio 2023.03.0+386 on MacOS as well.
I've tried it with visual and source editor and with Quarto and R Markdown documents, and they all present the same issue.
ronblum commentedon Apr 14, 2023
Reproduced in RStudio Desktop 2023.05.0-daily+212 on MacOS 13.2, as well.
lgaborini commentedon Aug 17, 2023
It also affects R source files (RStudio Desktop 2023.06.1 build 524 on Windows)
github-actions commentedon Feb 14, 2024
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
RoelVerbelen commentedon Feb 15, 2024
Just reacting to the bot message: this is still an issue for me.
github-actions commentedon Aug 14, 2024
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
RoelVerbelen commentedon Aug 14, 2024
Tested it and still an issue in latest version 2024.04.2-764.