Will R automatically install SystemRequirements: for users who no longer have this program

When a user installs a package using SystemRequirements: and they don’t have an installed program / package yet, will R install it?

The clipr package is a great example of this question: https://github.com/mdlincoln/clipr/blob/master/DESCRIPTION . If a package declares SystemRequirements: in a DESCRIPTION file, will it be installed R to check?

clipr DESCRIPTION File

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 

I looked through the section

+5
source share
1 answer

No. In general, R will not do this, because how can it be? SystemRequirements is a non-spec text field that could tell R how to establish a requirement for any system.

There are several packages that will be after checking the installation to find out if other requirements are present in the system and offer to download and install them for the user, but this completely depends on the author of the package and is not guaranteed.

If you need some proof, you just need to believe me, but I installed the clip on my system and neither xsel nor xclip were installed in the process. I think that many people can also confirm the presence of Java problems, since Java is not installed automatically when rJava is installed.

+4
source

Source: https://habr.com/ru/post/1237622/


All Articles