r - 将RStudio中的默认编辑器更改为notepad++

标签 r notepad++ rstudio

我想将RStudio(Windows 7)中的默认编辑器更改为notepad++。

我知道我应该使用

options(editor = "notepad")

然后运行,例如:
mean <- edit(mean)

但是当我输入notepad++时出现此错误
options(editor = "notepad++")
mean <- edit(mean)
Error in edit(name, file, title, editor) : 
  unable to run editor 'notepad++'

在Windows中,我可以通过键入“启动notepad++”在控制台中运行notepad++。

我将非常感谢您的帮助!

这是我的 session 信息:
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Polish_Poland.1250  LC_CTYPE=Polish_Poland.1250    LC_MONETARY=Polish_Poland.1250
[4] LC_NUMERIC=C                   LC_TIME=Polish_Poland.1250    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_2.15.2

最佳答案

好的,这很简单:

options(editor = "C:/Program Files (x86)/Notepad++/notepad++.exe")

对不起,这个问题。

关于r - 将RStudio中的默认编辑器更改为notepad++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14829810/

相关文章:

php - 在 Notepad++ 中使用 MySQLi 函数需要包括哪些内容?

css - 在 bookdown 中的 R 代码块和文本之间添加空格以进行 html 输出

r - 在 RStudio 中执行 "cannot open the connection"时出现错误 "knit HTML"

在 R 中删除括号 "("之前的空格

keyboard - 在 Notepad++ 中增量搜索后是否有 'Next' 和 'Previous' 的快捷方式?

r - mtcars ggplot 不知道如何处理数字类

Notepad++ 6.5.5 自动更正

r - 使用Knitr和RStudio将ggplot2输出嵌入LaTeX pdf中

r - 如何在R中使用具有多个条件的排名函数Row_number

r - *.o : File format not recognized on Windows 7