我正在使用Atom编写R代码,并尝试使用lintr,但linter-lintr找不到它。R在我的$PATH上,lintr安装在R上。
每当我键入时,都会发生以下错误。
/Users/bfh/.atom/packages/linter/lib/linter-registry.js:159 [Linter] Error running lintr Error: Error in library(lintr) : there is no package called 'lintr'
Calls: suppressPackageStartupMessages -> withCallingHandlers -> library
Execution halted
at ChildProcess.<anonymous> (/Users/bfh/.atom/packages/linter-lintr/node_modules/sb-exec/lib/index.js:56:20)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)(anonymous function) @ /Users/bfh/.atom/packages/linter/lib/linter-registry.js:159我已经尝试过卸载并重新安装linter、linter-lintr、linter-minimap和相关的R包。此设置在另一台计算机上工作正常。
发布于 2018-02-26 13:51:21
https://stackoverflow.com/questions/45554523
复制相似问题