R 控制台的问题
最近我的 R 控制台出现了一些问题。当我启动 R ("C:\Program Files\R\R-2.8.1\bin\Rgui.exe"
) 时,光标立即以 INSERT 模式(粗状态)启动。然后我必须按 Insert 并将其切换到正常模式(精简状态)。一旦我编写命令行并按 Enter,光标就会再次切换到 INSERT 模式。我不想在 INSERT 模式下使用 R 和光标,而且 R 总是切换,这很烦人。如何让 R 控制台恢复正常?
编辑:今天我意识到,当我使用 R 控制台作为最大化窗口时,光标始终处于 INSERT 模式(粗状态)。当我取消最大化窗口时,它会自动退出插入模式。我的问题第一段中的解释仍然有效。
I have a little problem with my R console recently. When I start R ("C:\Program Files\R\R-2.8.1\bin\Rgui.exe"
), the cursor immediately starts in INSERT mode (thick state). Then I have to press Insert and toggle it to normal mode (thin state). As soon as I write a command line and hit Enter, the cursor again toggles to INSERT mode. I don't want to use R with the cursor in INSERT mode, and it's annoying that R always toggles. How can I get R console back to normal?
EDIT: Today I realized that when I use the R console as a maximized window, the cursor is always in INSERT mode (thick state). When I unmaximize the window, it automatically gets out of the INSERT mode. The explanations in the first paragraph of my question are still valid as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不知道是什么原因造成的,但您可以尝试一些方法来缩小问题范围。
您需要知道问题是否是由该版本的 R 或所有版本的 R 引起的,或者是 Windows 问题,或者完全是其他问题。
打开命令提示符(“开始”->“运行”->
cmd
),然后右键单击标题栏,然后单击“属性”->“cmd”。选项。是否选中“插入模式”框?打开不同版本的 R(也许是最新版本),看看是否遇到同样的问题。
注释掉您的
RProfile.site
文件,看看是否会影响情况。如果一切都失败,请尝试重新安装 R。
No idea what is causing this but there are things you can try, in order to narrow down the problem.
You need to know whether the problem is caused by that version of R, or all versions of R, or it's a Windows issue, or something else entirely.
Open a command prompt (Start -> Run ->
cmd
), then right-click the title bar and click Properties -> Options. Is the 'Insert mode' box checked?Open a different version of R (the latest one, perhaps), and see if you get the same problem.
Comment out your
RProfile.site
file, and see if that affects the situation.If all else fails, try reinstalling R.
我已将 R 更新到 v2.12.1,问题就消失了。旧版本的 R 似乎有一个错误。
I have updated R to v2.12.1 and the problem vanished. It seems that there was a bug with that old version of R.