@@ -38,7 +38,7 @@ var checkAllPackages bool
3838var maxDownloadRoutines int
3939var maxCheckRoutines int
4040var outputReportDirectory string
41- var numberOfWorkers uint
41+ var numberOfWorkers int
4242var clearCache bool
4343var includeSuggests bool
4444var failOnError bool
@@ -141,7 +141,7 @@ for a collection of R packages that are defined in an
141141 fmt .Println (`failOnError = ` + strconv .FormatBool (failOnError ))
142142 fmt .Println (`maxDownloadRoutines = ` + strconv .Itoa (maxDownloadRoutines ))
143143 fmt .Println (`maxCheckRoutines = ` + strconv .Itoa (maxCheckRoutines ))
144- fmt .Println (`numberOfWorkers = ` + strconv .Itoa (int ( numberOfWorkers ) ))
144+ fmt .Println (`numberOfWorkers = ` + strconv .Itoa (numberOfWorkers ))
145145
146146 if maxDownloadRoutines < 1 {
147147 log .Warn ("Maximum number of download routines set to less than 1. Setting the number to default value of 40." )
@@ -151,7 +151,7 @@ for a collection of R packages that are defined in an
151151 log .Warn ("Maximum number of R CMD check routines set to less than 1. Setting the number to default value of 5." )
152152 maxCheckRoutines = 5
153153 }
154- if int ( numberOfWorkers ) < 1 {
154+ if numberOfWorkers < 1 {
155155 log .Warn ("Number of simultaneous installation processes should be greater than 0. Setting the default number of workers to 20." )
156156 numberOfWorkers = 20
157157 }
@@ -268,7 +268,7 @@ for a collection of R packages that are defined in an
268268 "Maximum number of concurrently running download goroutines." )
269269 rootCmd .PersistentFlags ().IntVar (& maxCheckRoutines , "maxCheckRoutines" , 5 ,
270270 "Maximum number of concurrently running R CMD check goroutines." )
271- rootCmd .PersistentFlags ().UintVar (& numberOfWorkers , "numberOfWorkers" , 20 ,
271+ rootCmd .PersistentFlags ().IntVar (& numberOfWorkers , "numberOfWorkers" , 20 ,
272272 "Number of simultaneous installation processes." )
273273 rootCmd .PersistentFlags ().BoolVar (& clearCache , "clearCache" , false ,
274274 "Use this flag if you want to clear scribe internal cache directory structure. This will cause " +
0 commit comments