Skip to content

Treat multiline command as one block in R Console history #1666

@ThomasSoeiro

Description

@ThomasSoeiro

Is your feature request related to a problem? Please describe.

If we send a multiline command to the console, e.g.:

table(
  warpbreaks$wool,
  warpbreaks$tension
)

And then press up arrow in R console, we only get the last line (i.e. )).

RStudio, Positron, and ESS give the entiere command, which is very convenient.

This is discussed e.g. here: https://stackoverflow.com/q/16226216

Describe the solution you'd like

Treat multiline command as one block in R Console history, i.e. get the full command as in RStudio, Positron, and ESS when pressing up arrow.

Describe alternatives you've considered

Not tried in radian (cannot be easily installed on my work computer). Plus I prefer to stick with upstream R console.

Additional context

Would be very useful for multiline pipe commands too!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions