Bug 17255 - HELP: Clarify that R_UNZIPCMD is set to "" if no 'unzip' command was found during configuration (PATCH)
Summary: HELP: Clarify that R_UNZIPCMD is set to "" if no 'unzip' command was found du...
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Documentation (show other bugs)
Version: R 3.3.*
Hardware: Other Linux
: P5 trivial
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2017-04-08 01:33 UTC by Henrik Bengtsson
Modified: 2017-04-08 01:33 UTC (History)
0 users

See Also:


Attachments
Minor clarification to help("options") (703 bytes, patch)
2017-04-08 01:33 UTC, Henrik Bengtsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Bengtsson 2017-04-08 01:33:20 UTC
Created attachment 2243 [details]
Minor clarification to help("options")

help("options") reads:

unzip:

a character string used by unzip: the path of the external program unzip or "internal". Defaults to the value of R_UNZIPCMD, which is set in ‘etc/Renviron’ if an unzip command was found during configuration.

However, when installing R 3.3.3 in a fresh, clean Centos 7 Docker image that does not have 'unzip' on the PATH, I ended up with an R installation that set 'R_UNZIPCMD' regardless:

[root@ea6d2d7e0ef3 /]# grep UNZIP /usr/local/lib64/R/etc/Renviron
R_UNZIPCMD=${R_UNZIPCMD-''}

That is,

[root@ea6d2d7e0ef3 /]# Rscript --vanilla -e '"R_UNZIPCMD" %in% names(Sys.getenv())'
[1] TRUE

I propose the following update to help("options"):

svn diff src/library/base/man/options.Rd
Index: src/library/base/man/options.Rd
===================================================================
--- src/library/base/man/options.Rd (revision 72496)
+++ src/library/base/man/options.Rd (working copy)
@@ -701,8 +701,8 @@
       the path of the external program \command{unzip} or \code{"internal"}.
 #ifdef unix
       Defaults to the value of \env{R_UNZIPCMD}, which is set in
-      \file{etc/Renviron} if an \code{unzip} command was found during
-      configuration.
+      \file{etc/Renviron} to the path of the \code{unzip} command found
+      during configuration and otherwise to \code{""}.
 #endif
 #ifdef windows
       Defaults to \code{"internal"} when the internal unzip code is