使用RSCRIPT错误 [英] Error using rscript

查看:1302
本文介绍了使用RSCRIPT错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装在我的Mac(OS X,埃尔卡皮坦10.11.5)R的自制版本。我一直在使用RSCRIPT成功了大约两个星期了。然而,当我试图今早使用运行脚本 RSCRIPT file.r ,我收到以下错误:


  

/usr/local/Cellar/r/3.3.1/R.framework/Versions/3.3/Resources/bin/R:行209:/usr/local/Library/ENV/4.3/sed:没有这样的文件或目录


  
  

/usr/local/Cellar/r/3.3.1/R.framework/Versions/3.3/Resources/bin/R:行209:/usr/local/Library/ENV/4.3/sed:没有这样的文件或目录


  
  

致命错误:无法打开文件'':没有这样的文件或目录


(这是完全错误。是的,它出现了两次,这是不是一个错字。)

得到那个错误之后,我试图卸载并重新安装自制软件河我得到了同样的错误。自去年使用RSCRIPT我已经安装(以我所知)唯一的其他包PSPP,但我看不出有任何理由为什么这应该已经影响RSCRIPT。

当然,错误是说文件 /usr/local/Library/ENF/4.3/sed 无法找到。当检查在/ usr /本地/库这是当然的,真实的,但我不知道有什么正确的方法来解决这个问题是。好像RSCRIPT只是试图访问SED,附带在OS X

本机

这是我所能做的任何想法?

这被认为是包含家酿/科学中的一个错误。错误报告可以在这里找到: https://github.com/Homebrew/homebrew-science /问题/ 3839

这个临时的解决办法(在OS X上进行测试,如2016年7月19日下午12点54中央的)在GitHub上从ck37:

 的mkdir的/ usr /本地/库/ ENV
LN -s在/ usr /本地/库/家酿/垫片/超/ /usr/local/Library/ENV/4.3


解决方案

而不是做符号链接作为一个临时的解决,并且直到研究瓶是固定的。简短的回答是 BREW重装-s - [R

我张贴这种回答(与解释为什么发生这种情况)上的duplicate这解决了这个问题对我来说问题。

I have a Homebrew version of R installed on my Mac (OS X, El Capitan 10.11.5). I've been using rscript successfully for about two weeks now. However, when I tried to run a script this morning using rscript file.r, I get the following error:

/usr/local/Cellar/r/3.3.1/R.framework/Versions/3.3/Resources/bin/R: line 209: /usr/local/Library/ENV/4.3/sed: No such file or directory

/usr/local/Cellar/r/3.3.1/R.framework/Versions/3.3/Resources/bin/R: line 209: /usr/local/Library/ENV/4.3/sed: No such file or directory

Fatal error: cannot open file '': No such file or directory

(That is the full error. Yes, it appears twice, it is not a typo.)

After getting that error, I tried uninstalling and reinstalling r with homebrew. I get the same error. The only other package that I have installed since last using rscript (to the best of my knowledge) is pspp, but I see no reason why this should have affected rscript.

Of course, the error is saying that the file /usr/local/Library/ENF/4.3/sed cannot be found. Upon inspection of /usr/local/library this is, of course, true, but I don't know what the proper way to fix this is. It seems like rscript is just trying to access sed, which comes native on OS X.

Any ideas on what I can do?

This was found to be a bug contained within Homebrew/science. The error report can be found here: https://github.com/Homebrew/homebrew-science/issues/3839

Temporary fix for this (tested on OS X, as of 07-19-2016 12:54 PM central) from ck37 on github:

mkdir /usr/local/Library/ENV
ln -s /usr/local/Library/Homebrew/shims/super/ /usr/local/Library/ENV/4.3

解决方案

Instead of doing the symlinks as a temporary fix, and until the r bottle is fixed. Short answer is to brew reinstall -s r.

I posted this answer (with an explanation to why this occurs) on the duplicate question which solved this problem for me.

这篇关于使用RSCRIPT错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆