@@ -628,7 +628,7 @@ install.pkgs <- function(pkgnames, dependents.install=F, log=T) {
628628 result <- TRUE
629629 for (pkgname in pkgnames ) {
630630 if (log ) {
631- log.message.always(" BEGIN processing:" , pkgname , " \n " )
631+ log.message.always(" BEGIN processing: " , pkgname , " \n " )
632632 log.timestamp()
633633 }
634634 dependent.install.ok <- T
@@ -643,12 +643,12 @@ install.pkgs <- function(pkgnames, dependents.install=F, log=T) {
643643 # 3. a mixture of TRUE and NA: ok, but some more to install (the NAs)
644644 if (any(! dep.status , na.rm = T )) {
645645 # case 2
646- log.message.always(" not installing dependents of:" , pkgname , " , one or more previously failed" , " \n " )
646+ log.message.always(" not installing dependents of: " , pkgname , " , one or more previously failed" , " \n " )
647647 dependent.install.ok <- F
648648 } else {
649649 if (anyNA(dep.status )) {
650650 # case 3
651- log.message.always(" installing dependents of:" , pkgname , " \n " )
651+ log.message.always(" installing dependents of: " , pkgname , " \n " )
652652 dependent.install.ok <- install.pkgs(dependents , dependents.install = T )
653653 } else {
654654 # case 1
@@ -661,7 +661,7 @@ install.pkgs <- function(pkgnames, dependents.install=F, log=T) {
661661 cat(" would install:" , pkgname , " \n " )
662662 } else {
663663 if (! dependent.install.ok ) {
664- log.message.always(" not installing:" , pkgname , " dependent install failure" ," \n " )
664+ log.message.always(" not installing: " , pkgname , " dependent install failure" ," \n " )
665665 } else {
666666 should.install <- T
667667 if (pkgname %in% names(install.status )) {
@@ -678,7 +678,7 @@ install.pkgs <- function(pkgnames, dependents.install=F, log=T) {
678678 }
679679 }
680680 if (should.install ) {
681- log.message.always(" installing:" , pkgname , " (" , install.count , " of" , install.total , " )" , " \n " )
681+ log.message.always(" installing: " , pkgname , " (" , install.count , " of" , install.total , " )" , " \n " )
682682 log.timestamp()
683683 this.result <- install.pkg(pkgname )
684684 result <- result && this.result
@@ -688,12 +688,12 @@ install.pkgs <- function(pkgnames, dependents.install=F, log=T) {
688688 }
689689 } else {
690690 msg <- if (install.status [pkgname ]) " already installed" else " failed earlier"
691- log.message.always(" not installing:" , pkgname , " (" , install.count , " of" , install.total , " )" , msg )
691+ log.message.always(" not installing: " , pkgname , " (" , install.count , " of" , install.total , " )" , msg )
692692 }
693693 }
694694 }
695695 if (log ) {
696- log.message.always(" END processing:" , pkgname , " \n " )
696+ log.message.always(" END processing: " , pkgname , " \n " )
697697 }
698698
699699 install.count = install.count + 1
@@ -711,15 +711,15 @@ install.suggests <- function(pkgnames) {
711711 ignore <- c(ignore , suggests [grepl(ignore.pattern [[i ]], suggests )])
712712 }
713713 suggests <- if (class(ignore.pattern ) == ' negation' ) ignore else setdiff(suggests , ignore )
714- log.message(" NOTE: ignoring suggested:" , paste(ignore , collapse = ' ,' ))
714+ log.message(" NOTE: ignoring suggested: " , paste(ignore , collapse = ' ,' ))
715715 }
716716 if (length(suggests ) > 0 ) {
717717 if (is.fastr() && ! ignore.blacklist ) {
718718 # no point in trying to install blacklisted packages (which are likely)
719719 blacklist <- get.blacklist()
720720 nsuggests <- suggests [! suggests %in% blacklist ]
721721 if (length(nsuggests ) != length(suggests )) {
722- log.message(" not installing Suggests of:" , pkgname , " , one or more is blacklisted: " , paste0(suggests [suggests %in% blacklist ], collapse = " ," ))
722+ log.message(" not installing Suggests of: " , pkgname , " , one or more is blacklisted: " , paste0(suggests [suggests %in% blacklist ], collapse = " ," ))
723723 return ()
724724 }
725725 }
@@ -730,11 +730,11 @@ install.suggests <- function(pkgnames) {
730730 # 3. a mixture of TRUE and NA: ok, but some more to install (the NAs)
731731 if (any(! dep.status , na.rm = T )) {
732732 # case 2
733- log.message(" not installing Suggests of:" , pkgname , " , one or more previously failed" )
733+ log.message(" not installing Suggests of: " , pkgname , " , one or more previously failed" )
734734 } else {
735735 if (anyNA(dep.status )) {
736736 # case 3
737- log.message(" installing Suggests of:" , pkgname ," : " , paste(suggests [is.na(dep.status )], sep = " , " ))
737+ log.message(" installing Suggests of: " , pkgname , " : " , paste(suggests [is.na(dep.status )], sep = " , " ))
738738 dependent.install.ok <- install.pkgs(suggests [is.na(dep.status )], dependents.install = F , log = F )
739739 } else {
740740 # case 1
@@ -785,7 +785,7 @@ show.install.status <- function(test.pkgnames) {
785785do.it <- function () {
786786 log.message(" Getting the list of packages to install" , level = 2 )
787787 test.pkgnames <- get.pkgs()
788- log.message(" List of packages to install:" , paste0(test.pkgnames , collapse = " ," ), level = 2 )
788+ log.message(" List of packages to install: " , paste0(test.pkgnames , collapse = " ," ), level = 2 )
789789
790790 if (list.versions ) {
791791 for (pkgname in test.pkgnames ) {
@@ -837,12 +837,12 @@ do.it <- function() {
837837 if (dry.run ) {
838838 cat(" would test:" , pkgname , " \n " )
839839 } else {
840- log.message.always(" BEGIN testing:" , pkgname , " (" , test.count , " of" , test.total , " )" )
840+ log.message.always(" BEGIN testing: " , pkgname , " (" , test.count , " of" , test.total , " )" )
841841 test.package(pkgname )
842- log.message.always(" END testing:" , pkgname )
842+ log.message.always(" END testing: " , pkgname )
843843 }
844844 } else {
845- log.message.always(" install failed, not testing:" , pkgname )
845+ log.message.always(" install failed, not testing: " , pkgname )
846846 }
847847 test.count = test.count + 1
848848 }
@@ -936,7 +936,7 @@ test.package <- function(pkgname) {
936936 res <- 1L
937937 }
938938 end.time <- proc.time()[[3 ]]
939- log.message(" TEST_TIME:" , pkgname , end.time - start.time )
939+ log.message(" TEST_TIME: " , pkgname , end.time - start.time )
940940 return (res )
941941}
942942
@@ -1147,7 +1147,7 @@ quiet <- F
11471147verbose <- F
11481148very.verbose <- F
11491149log.file <- file.path(getwd(), ' install.packages.R.log' )
1150- cat(" The output is also logged into:" , log.file , " \n " )
1150+ cat(" The output is also logged into: " , log.file , " \n " )
11511151
11521152loggable <- function (level ) {
11531153 result <- T
0 commit comments