Skip to content

Run Selection/Line sends comments preceding codeΒ #438

@andycraig

Description

@andycraig

Describe the bug

Run Selection/Line sends all comments preceding code. This is not exactly a bug, but it's a bit annoying.

To Reproduce

  1. Create a file temp.R with the following content:
# 1
# 2
x <-3
  1. Place cursor on line 3
  2. Use command R: Run Selection/Line

Expected: Just line 3 is sent to the console

Actual: All three lines are sent to the console:

> # 1
> # 2
> x <-3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions