Skip to content

Commit e1cbaee

Browse files
author
smeyer
committed
tweak r87187
git-svn-id: https://svn.r-project.org/R/trunk@87257 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 7598fe4 commit e1cbaee

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/library/tools/R/install.R

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
#### R based engine for R CMD INSTALL SHLIB Rprof
2222
####
2323

24-
##' @param args
25-
2624
## R developers can use this to debug the function by running it
2725
## directly as tools:::.install_packages(args), where the args should
2826
## be what commandArgs(TRUE) would return, that is a character vector
@@ -49,7 +47,6 @@ if(FALSE) {
4947

5048

5149

52-
##' @return ...
5350
.install_packages <- function(args = NULL, no.q = interactive(), warnOption = 1)
5451
{
5552
## calls system() on Windows for
@@ -1008,12 +1005,13 @@ if(FALSE) {
10081005
paste(sQuote(miss), collapse = ", ")),
10091006
pkg_name,
10101007
sprintf("\nPerhaps try a variation of:\ninstall.packages(c(%s))",
1011-
paste(shQuote(miss), collapse = ", ")))
1008+
paste(sQuote(miss, FALSE), collapse = ", ")))
10121009
else if (length(miss))
10131010
pkgerrmsg(sprintf("dependency %s is not available",
1014-
sQuote(miss)), pkg_name,
1011+
sQuote(miss)),
1012+
pkg_name,
10151013
sprintf("\nPerhaps try a variation of:\ninstall.packages(%s)",
1016-
shQuote(miss)))
1014+
sQuote(miss, FALSE)))
10171015
}
10181016

10191017
starsmsg(stars, "installing *source* package ",
@@ -1603,7 +1601,7 @@ if(FALSE) {
16031601
file.remove(Sys.glob(file.path(instdir, "demo", "*")))
16041602
res <- try(.install_package_demos(".", instdir))
16051603
if (inherits(res, "try-error"))
1606-
pkgerrmsg("ERROR: installing demos failed")
1604+
pkgerrmsg("installing demos failed", pkg_name)
16071605
Sys.chmod(Sys.glob(file.path(instdir, "demo", "*")), fmode)
16081606
}
16091607

0 commit comments

Comments
 (0)