【发布时间】:2019-11-12 11:10:20
【问题描述】:
我已经在 macOS 中从 Home-brew 安装了 R:
brew install R
不过,现在我需要切换版本并安装特定的 R 版本。出于这个原因,我尝试以两种方式安装 R-3.5.2,但均未成功:
brew install R-3.5.2
brew install R@3.5.2
这是我得到的:
Error: No available formula with the name "r@3.5.2"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
你有什么想法吗? 谢谢:)
【问题讨论】:
-
如果你只需要这个来测试旧版本的东西,我会推荐rstudio.cloud
-
感谢您的回答。我实际上需要降级并保留旧版本。
-
虽然在技术上使用
brew可以实现,但您真正想要的是拥有虚拟环境。我建议在单独的环境中使用conda安装和管理 shell 级软件。 -
我喜欢在 R-studio 工作。你认为虚拟环境与它兼容吗?顺便说一句,现在我宁愿将版本从最新版本切换到 3.5.2。你知道怎么做吗?
-
没人?请!我需要安装这个旧版本:(