最近,管道操作符%>%
的RStudio快捷方式停止工作。这似乎是随机发生的,因为我没有更新任何东西。有人知道这是怎么回事吗?我该怎么解决这个问题?
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_1.0.7
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 knitr_1.34 magrittr_2.0.1 tidyselect_1.1.1
[5] R6_2.5.1 rlang_0.4.11 fastmap_1.1.0 fansi_0.5.0
[9] tools_4.1.0 xfun_0.25 utf8_1.2.2 cli_3.0.1
[13] DBI_1.1.1 htmltools_0.5.2 ellipsis_0.3.2 yaml_2.2.1
[17] digest_0.6.27 assertthat_0.2.1 tibble_3.1.3 lifecycle_1.0.0
[21] crayon_1.4.1 purrr_0.3.4 vctrs_0.3.8 glue_1.4.2
[25] evaluate_0.14 rmarkdown_2.10 compiler_4.1.0 pillar_1.6.2
[29] generics_0.1.0 pkgconfig_2.0.3
发布于 2021-10-25 20:24:27
似乎很多人在R和RStudio版本(https://community.rstudio.com/t/ctrl-shift-m-pipe-operator-shortcut-is-suddenly-stop-working-since-this-morning/118362)中都有这个问题,可能是因为默认的Ctrl+Shift+M是另一个进程的快捷方式(很多人在WebEx中似乎是“静音”的;请参阅下面的评论和其他答案)。
在您的RStudio集成开发环境中,如果您转到“工具”选项卡并选择“修改键盘快捷键...”您可以看到快捷键列表。如果您在顶部的搜索栏中键入“管道”,您将看到“插入管道操作符”仍然设置为Ctrl+Shift+M,但它不起作用。
我选择的简单解决方案是单击这个"Ctrl+Shift+M",一旦突出显示,通过按下您将用于该快捷键的键来键入新的快捷键(尽管可能有一个比更改您的快捷键更优雅的解决方案)。
我选择了"Ctrl+Shift+“,因为逗号离键盘上的M只有一个空格。
发布于 2021-11-10 08:17:03
在我尝试重启/终止Webex的进程后,我确信它是WebEx。
编辑:在任务管理器中结束进程后(打开任务管理器,找到webex并结束进程),ctrl+shift+m再次工作。(Windows 10)
发布于 2021-11-03 09:40:21
我也有同样的问题。我猜它来自评论中提到的WebEx。我卸载了WebEx,但问题仍然存在。然后我使用CCleaner软件中的工具清理了Windows注册表,现在管道快捷方式又开始工作了!
https://stackoverflow.com/questions/69714346
复制相似问题