RStudio:右括号被覆盖

RStudio: Closing parenthesis overwritten

我正在用 R 上一门统计学课程,虽然它在很多方面都非常棒,但其中一个方面非常烦人。也就是说,如果我有嵌套的括号,并且我想用一个函数来包裹某些东西,那么右括号会被覆盖,除非我不在它外面。

bla(xxx) # start here
blu(bla(xxx*) # Type blu, move with Ctrl+> to the star and type ')'
blu(bla(xxx)) # What I expect
blu(bla(xxx)  # What I get

有没有办法关闭它?我在设置中找不到选项,只能在其他页面上找到一些正则表达式黑客想法。

提前致谢!

在 RStudio 中,转到 Tools -> Global Options -> Code 在此选项卡中,取消选中 Insert matching parens/quotes。这会关闭此行为,但不幸的是,引用也是有用的。