question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Send to terminal doubles closing parentheses

See original GitHub issue

Sometimes when I send lines or blocks to the console via ctrl+enter without selecting the code, the ending parentheses will be doubled and stop the code from being run: image If the line/block of code is selected this never happens. I have not managed to reproduce the bug reliably 😦 It happens often enough when executing expect_*() within test_that blocks that I assume it it has something todo with the enclosing brackets. It also only happens on the last statement in a block but does also happen when it is the only one:

test_that("assertInRange works", {
  expect_silent(assertInRange(a = 1:5, range = c(0, 100)))
})

I have tried to reproduce the bug with similarly nested, more generic functions (also “non-function” with same arguments) but could not get the bug to show up.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
YandLiucommented, Oct 17, 2020

I also had this problem so I turned off radian.auto.match, just add following code to the radian profile: options(radian.auto_match = FALSE) But apparently this is only a temporary solution, waiting for someone to open an issue there.

1reaction
humanfactorscommented, Oct 12, 2021

The issue resolves with options(radian.auto_match = FALSE).

However, yes the issue occurs under latest build of and radian version: 0.5.11 and ikuyadeu.r 2.3.1, with r.bracketedPaste enabled.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Send to terminal doubles closing parentheses #419 - GitHub
Sometimes when I send lines or blocks to the console via ctrl+enter without selecting the code, the ending parentheses will be doubled and ......
Read more >
Print the string between two parentheses - Unix StackExchange
This solution captures characters between parenthesis regardless of any characters that follow the closing parentheses and ignores lines that have no ...
Read more >
Using Square Brackets in Bash: Part 2 - Linux.com
In the previous article, we looked at various ways square brackets are used at the command line, including globbing.
Read more >
c# - How do I extract text that lies between parentheses (round ...
If you wish to stay away from regular expressions, the simplest way I can think of is: string input = "User name (sales)";...
Read more >
How to run a script without closing the terminal? - Ask Ubuntu
You can exit the gnome-terminal window by closing the window or type exit at the bash prompt. Or you can type more commands...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found