Will R auto install SystemRequirements: for users that don't have the program already

Will R auto install SystemRequirements: for users that don't have that program already

当用户安装带有 SystemRequirements: 的软件包并且他们还没有安装 program/package 时,R 会安装它吗?

clipr 包是这个问题的完美示例:https://github.com/mdlincoln/clipr/blob/master/DESCRIPTION。如果包在 'DESCRIPTION' 文件中声明了 SystemRequirements: 是否会由 R 安装以进行检查?

clipr 描述文件

Package: clipr
Type: Package
Title: Read and Write from the System Clipboard
Version: 0.2.0.9000
Authors@R: c(
  person("Matthew", "Lincoln", email = "matthew.d.lincoln@gmail.com", role = c("aut", "cre")),
  person("Louis", "Maddox", role = "ctb"))
Description: Simple utility functions to read from and write to the Windows,
  OS X, and X11 clipboards.
Imports: utils
SystemRequirements: xclip (http://sourceforge.net/projects/xclip/) or xsel
  (http://www.vergenet.net/~conrad/software/xsel/) for accessing the X11
  clipboard
License: GPL-3
LazyData: TRUE
Suggests: testthat
URL: https://github.com/mdlincoln/clipr
BugReports: https://github.com/mdlincoln/clipr/issues

我已经查阅了Writing R Extensions section on the DESCRIPTION file,但找不到我问题的答案。

没有。一般来说 R 不会那样做,因为它怎么可能呢? SystemRequirements 是一个没有规范的文本字段,可以告诉 R 如何在任何给定系统上安装要求。

有些软件包会在安装后检查系统是否满足其他要求,并为用户提供下载和安装,但这完全取决于软件包作者,我们无法保证。

如果你想要一些证据,你只需要相信我,但我在我的系统上安装了 clipr,并且在这个过程中既没有安装 xsel 也没有安装 xclip。我认为很多人也可以证明存在 Java 问题,因为在安装 rJava 时 Java 不会自动安装。