我已经使用npm安装了虎鲸,如果我转到我的R项目文件夹并键入orca --version,我会看到1.3.1。
在Rstudio中,我已经安装了processx包。生成了一个带有fig的plot_ly,如果我尝试捕获一个情节,我会看到以下内容
orca(fig, 'temp.svg')
Error in processx::run("orca", "-h") :
System command 'orca' failed, exit status: 127, stderr:
E> env: node: No such file or directory
Type .Last.error.trace to see where the error occurred如果我输入.Last.error.trace,我会看到以下内容
Stack trace:
1. plotly:::orca(fig, "temp.svg")
2. plotly:::orca_available()
3. plotly:::correct_orca()
4. processx::run("orca", "-h")
5. throw(new_process_error(res, call = sys.call(), echo = echo, ...
x System command 'orca' failed, exit status: 127, stderr:
E> env: node: No such file or directory 我已经重新启动了Rstudio并重新启动了R,但是仍然看到了问题所在。我该怎么解决这个问题?
发布于 2022-02-25 10:54:34
根据您的描述,我假设您已经安装了orca和processx库。接下来的步骤是:
您可以跳过第一步,直接转到第二步,因为您已经使用NPM安装了桌面应用程序。但是,--我建议您像我一样重新安装。
对于使用常规安装方法执行第一步,您可以从github:orca安装程序下载Orca (windows-Relase.zip)。然后,在zip文件夹中安装应用程序。
安装它之后,您可以通过以下操作转到第二步:
重新启动你的电脑,确保一切顺利运行。
最后,您可以在Rstudio中再次尝试代码。希望这能帮助一些困惑。
https://stackoverflow.com/questions/68492758
复制相似问题