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(" \n Perhaps try a variation of:\n install.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(" \n Perhaps try a variation of:\n install.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