如何修复“tar:无法设置默认区域设置”错误?
我正在尝试将一个包安装到 R 中,这是我发誓永远不会做的事情,但我还是在这里。
据说命令是:
install.packages('NCStats',,'http://www.rforge.net/')`
当我享受健康剂量时:
Warning: dependencies 'nortest', 'plotrix', 'sciplot', 'car', 'gplots', 'gdata', 'Hmisc', 'TeachingDemos' are not available
trying URL 'http://www.rforge.net/bin/macosx/leopard/contrib/2.11/NCStats_0.1-4.tgz'
Content type 'application/x-gzip' length 237120 bytes (231 Kb)
opened URL
=================================================="
downloaded 231 Kb
tar: Failed to set default locale
The downloaded packages are in
/var/folders/Qj/Qjps7xnxFcWdSHsJY3lo+k+++TI/-Tmp-//RtmpzNO8MM/downloaded_packages`
叹息。有人知道我如何告诉 tar 我所在的区域设置,而不是我理解为什么它需要它或者为什么它不能已经知道它?
我正在运行 OSX 10.6.4 和 R 2.11.1 GUI 1.34 Leopard 版本 64 位 (5589)。
I'm trying to install a package into R, something I swore on my blood never to do, yet here I am.
The command supposedly goes:
install.packages('NCStats',,'http://www.rforge.net/')`
while I am enjoying the healthy dose of:
Warning: dependencies 'nortest', 'plotrix', 'sciplot', 'car', 'gplots', 'gdata', 'Hmisc', 'TeachingDemos' are not available
trying URL 'http://www.rforge.net/bin/macosx/leopard/contrib/2.11/NCStats_0.1-4.tgz'
Content type 'application/x-gzip' length 237120 bytes (231 Kb)
opened URL
=================================================="
downloaded 231 Kb
tar: Failed to set default locale
The downloaded packages are in
/var/folders/Qj/Qjps7xnxFcWdSHsJY3lo+k+++TI/-Tmp-//RtmpzNO8MM/downloaded_packages`
Le-sigh. Anybody know how I can tell tar what locale I'm in, not that I understand why it needs that or why it can't just know it already?
I'm running OSX 10.6.4 and R 2.11.1 GUI 1.34 Leopard build 64-bit (5589).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
步骤 1(在 R 控制台中)
步骤 2:重新启动 R
源:http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Internationalization-of-the-R_002eapp
Step 1 (In R Console)
Step 2: Restart R
Source: http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Internationalization-of-the-R_002eapp
在 R 控制台中使用此命令:
记住退出并重新启动 R。
Use this command in the R console:
Remember to quit and start again R.
参考:https://github.com/nerves-project/nerves/issues /376#issuecomment-456939623
如果你不想永久设置 env.多变的。 do:
无需重新启动系统。
refer: https://github.com/nerves-project/nerves/issues/376#issuecomment-456939623
If you don't want to permanently set env. variable. do:
No need to restart the system.
将修复该错误 tar: 无法设置默认区域设置
will fix that error tar: Failed to set default locale