R噩梦:优胜美地,R,RStudio和Homebrew [英] R nightmare: Yosemite, R, RStudio, and Homebrew

查看:173
本文介绍了R噩梦:优胜美地,R,RStudio和Homebrew的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将MacBook Pro 13英寸Retina(2013年末)与OS X Yosemite 10.10.2结合使用,我不希望这对我最大的敌人不利.也许吧.

I use a MacBook Pro 13" Retina (Late 2013) with OS X Yosemite 10.10.2. I wouldn't wish this upon my worst enemy. Well maybe.

梦ight按时间顺序排列:

Nightmare in chronological order:

  1. 从官方网站下载了R和RStudio.
  2. 同时运行两个应用程序,很好.
  3. 已安装自制软件.在航站楼里跑了啤酒医生". Brew医生说R档案有问题.
  4. RStudio开始表现怪异.
  5. 通过CRAN镜像下载了ggplot2 R软件包. 5GB的数据阻塞了"private/var"文件.在那里删除了一些数据.
  6. Mac吓坏了.内核出现恐慌,直到Apple Store Genius删除了Mac并重新安装了OS X.

我想继续使用R和RStudio.问题:

I want to continue using R and RStudio. Questions:

  1. 如何解决此问题而又不会再次破坏Mac?
  2. 如何通过Homebrew安装R和RStudio?
  3. 我需要先安装XQuartz吗?
  4. 如果我未安装R和RStudio,会发生什么情况?
  5. 我应该认识R,RStudio和Homebrew之间的哪些冲突?
  6. 安装了Homebrew,R和RStudio的常见怪癖?
  7. 如何使Homebrew,R和RStudio在不烧毁房屋的情况下过上幸福的生活?

谢谢!

推荐答案

如何解决此问题而又不会炸毁Mac?

How do I go about this without blowing up the Mac again?

请勿在计算机运行时尝试删除交换文件!如果您开始删除随机系统文件,那将是糟糕的一天.

Don't try to delete your swap file while the computer is running! If you start deleting random system files you're going to have a bad day.

如何通过Homebrew安装R和RStudio?

How to install R and RStudio via Homebrew?

您可以使用brew install r安装R.您可以使用homebrew-cask安装二进制RStudio,例如brew install Caskroom/cask/rstudio.

You can install R with brew install r. You can install a binary RStudio using homebrew-cask, like brew install Caskroom/cask/rstudio.

我需要先安装XQuartz吗?

Do I need to install XQuartz first?

不,这不再是必需的.

如果我未安装R和RStudio,会发生什么情况?

What would happen if I install R and RStudio unbrewed?

没什么不好的; brew doctor可能会报告发现的结果,但这不是错误,您不应假定它们代表问题,尽管如果您以后寻求诊断构建故障的帮助时,它们对像我这样的维护者有帮助.

Nothing bad; brew doctor may report findings but these are not errors and you should not assume they represent problems, though they are helpful to maintainers like me if you seek help trying to diagnose build failures later.

我应该认识R,RStudio和Homebrew之间的哪些冲突?

What conflicts between R, RStudio and Homebrew should I recognize?

没有重要的冲突.如果您从 http://r.research.att.com/libs/,如果您使用冲泡的R,则不需要此操作,以后您可能无法从Homebrew安装gcc(提供gfortran)之类的东西.

There are no important conflicts. If you install the compilers from http://r.research.att.com/libs/, which are unnecessary if you're using a brewed R, you may later have trouble installing things like gcc (which provides gfortran) from Homebrew.

是否同时安装了Homebrew,R和RStudio的常见问题?

Common quirks of having all of Homebrew, R, and RStudio installed?

自2015年8月起,不再需要以下评论;现在,默认情况下,软件包已默认安装到/usr/local/lib/R/x.y/site-library,并且应该在较小的R升级后仍然存在.

As of August 2015 the comments below are no longer necessary; packages are now installed to /usr/local/lib/R/x.y/site-library by default and should survive minor R upgrades.

如果您使用酿造的R,并且希望已安装的软件包能够在较小的R升级中幸免,则可以运行mkdir -p ~/Library/R/3.2/library,然后R会默认将软件包安装到该路径(将软件包放置在主目录中,而不是将其放置在主目录中).在地窖里.

If you are using a brewed R and you would like your installed packages to survive minor R upgrades, you can run mkdir -p ~/Library/R/3.2/library and then R will install packages to that path by default (placing the packages in your home directory and not in the Cellar).

如何使Homebrew,R和RStudio在不烧毁房屋的情况下过上幸福的生活?

How can I make Homebrew, R, and RStudio live happily ever after without burning down the house?

见上文!

这篇关于R噩梦:优胜美地,R,RStudio和Homebrew的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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