我在 macOS 上并从终端使用 R。R 经常启动 XQuartz,例如install.packages("digest")
:
> install.packages("digest")
Installing package into ‘~/Library/R/3.5/library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
和一个 XQuartz 窗口打开Secure CRAN mirrors
。
另一个例子是当一个更新的包可用并且一个 XQuartz 窗口打开时
These packages have more recent versions available. Which would you like to update?
digest (0.6.18 -> 0.6.19) [CRAN]
如何强制 R 从终端提问而不是打开 XQuartz?