- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我最近将我的 macbook 更新到 macOS Sierra(版本 10.12.3 (16D32)),我无法再直接从终端运行 R:
DN51ssqi:~ kjytay$ R
-bash: R: command not found
DN51ssqi:~ kjytay$ R --version
-bash: R: command not found
从应用程序文件夹或 RStudio 打开 R 工作正常。任何人都遇到过这个问题/已经能够解决它?
这是我的 R 版本信息:
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 3.2
year 2016
month 10
day 31
svn rev 71607
language R
version.string R version 3.3.2 (2016-10-31)
nickname Sincere Pumpkin Patch
最佳答案
这只是一个猜测,但我认为这可能是您的 PATH
设置的问题,它可能在您升级时已被覆盖*。似乎至少值得一试。这是来自 RStudio 支持页面**:
R from source (including MacPorts and Homebrew)
When R is installed from CRAN on OS X the R executable is installed at /usr/bin/R. However, if R is installed directly from source or via a package manager like MacPorts or Homebrew, then the R executable is installed to either /usr/local/bin/R (Homebrew) or /opt/local/bin/R (MacPorts). In order to support these variations, RStudio scans for the R executable in the following sequence:
/usr/bin/R
/usr/local/bin/R
/opt/local/bin/RIf RStudio is not able to locate R by scanning these locations, it will fall back to using whatever version of R is located at /Library/Frameworks/R.framework/.
如果 RStudio 发现 R OK,那么您必须将它放在这些位置之一。确保这些位置在您的 $PATH 列表中:
在终端中:
echo $PATH
将显示您当前的路径列表。如果 RStudio 引用中的任何位置丢失,您可以通过尝试指定该位置来查看 R
是否位于该位置。例如:
/usr/local/bin/R
如果这对启动 R 有效,只需将该位置添加到您的 PATH 列表中:
export PATH=$PATH:/usr/local/bin
这样 OSX 就知道在哪里可以找到它!
* 在别处注意到 homebrew
中断,例如,在升级到 Sierra 时。这是一篇博客文章,概述了 R
用户在升级后可能希望采取的一些步骤:http://www.statsblogs.com/2017/01/26/upgrading-to-macos-sierra-nee-osx-for-r-users/
** 这是引用来自 https://support.rstudio.com/hc/en-us/articles/200486138-Using-Different-Versions-of-R 的支持页面
关于r - 升级到 macOS Sierra 后无法从终端运行 R,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41951145/
我今天升级到 MacOS Sierra 并像往常一样去了我的仓库,但没有任何 git 命令工作,实际上我的机器无法识别我安装了 git。帮助? 我找到了 this article但似乎有点复杂。 最佳
我正在尝试通过 sshfs 永久安装卷在 mac .我已尝试按照 how-to-get-automount-and-sshfs-osxfuse-working-with-yosemite 中的说明进行
将我的开发环境从 El Capitan 迁移到 Sierra 并将 Tizen Studio 从 1.0.1 更新到 1.1.1 后,SDB CLI 在我的新机器上不再工作。我已经安装了 JDK 1.
下面的问题已经得到部分解答,请参阅下面的解决方案部分。所以我发布这个部分是为了帮助其他人,也是因为我的解决方案还没有真正解决问题。 问题 所以,问题是为什么以下技术(使用 python 的平台和套接字
我有一台运行MacOS high sierra 10.13.6的Mac,2011年初。 我的Mac无法升级到更高的MacOS版本。 我需要安装XCode 11才能利用SwiftUI。 此answer适
我正在尝试 root 一个 android 设备,为此我需要运行 ADB 和 Fastboot 命令。 问题是,fastboot 命令给出了一个错误,对我来说没有任何意义。谷歌搜索后,我发现的唯一建议
我刚刚从 Yosemite 升级到 El Capitan(并复制了从 El Capitan 升级到 Sierra 的问题),当我尝试在终端内输入例如 git status 时,出现以下错误: xcru
我刚刚从 Yosemite 升级到 El Capitan(并复制了从 El Capitan 升级到 Sierra 的问题),当我尝试在终端中输入例如 git status 时,我收到以下错误: xcr
将 macOS 从 Sierra 升级到 High Sierra 会破坏正常的 Valet 安装。 Ping 工作正常,只是浏览器上的 *.dev 给出无法连接、站点无法连接的错误。 我已经尝试了常见
我最近将 iPhone 设备中的 iOS 升级到 12.2(为我的应用程序“Match4app”提供对最新版本的支持),这似乎与 Xcode 10.1 不兼容。我应该将 Xcode 更新到 10.2
所以它看起来像新的“系统完整性保护”lockdown/usr(在其他目录中)使 pear 和 pecl 无法启动。有没有人找到禁用它的解决方法? 最佳答案 有一个更简单的方法 - 无需禁用 SIP 或
所以它看起来像新的“系统完整性保护”lockdown/usr(在其他目录中)使 pear 和 pecl 无法启动。有没有人找到禁用它的解决方法? 最佳答案 有一个更简单的方法 - 无需禁用 SIP 或
我在手机上使用Siri,并看着它随时随地创建提醒。当我在办公室时,我不想使用Siri干扰安静,因此我通常使用与Reminders应用程序集成的Alfred工作流程,或直接使用Reminders应用程序
我刚刚将 MacBook 更新为 macOS Sierra。我在 Eclipse 中遇到了这个奇怪的问题,每次我尝试使用自动完成功能(Cmd+鼠标悬停)打开任何内容时,或者即使我只是将鼠标悬停在附加了
我最近将我的工作机器更新为 macOS Sierra,现在我的虚拟主机配置都不起作用。我需要重新配置所有这些,这是一个巨大的痛苦。 我想知道 - 发生这种情况是否正常?当我更新操作系统时,有没有办法防
在 Mac 上使用 sshfs 后,我无法再看到我的用户目录。 当我打开终端窗口时,我看到以下内容: Last login: Mon May 22 10:54:30 on ttys003 mkdir:
当我将我的 mac 更新到 macOS Sierra 10.12.1 时,在真实设备上运行应用程序的时间显着增加。 “运行自定义脚本 'Embed Pods Frameworks'”和“复制 Swif
在我在 OS X 或 macOS 上的所有终端 session 中,如果我输入 who ,除了预期的用户(所有我在各种窗口中)我也总是看到 _mbsetupuser console ... 那是谁,
不幸的是,我在网上找不到有关此主题的任何最新信息。类似于这里提出的问题: OS X Yosemite Spotlight extensions ,现在可以在 macOS Sierra 上扩展 Sp
我遵循本指南: valgrind installation guide 下载软件包后,我运行了 sh 脚本,但是当我启动 make install 命令时,它无法创建该文件夹,因为它没有权限(即使我使
我是一名优秀的程序员,十分优秀!