@@ -258,7 +258,7 @@ nCompile <- function(...,
258258 package = FALSE ,
259259 returnList = FALSE ) { # # return a list even if there is only one unit being compiled.
260260 # (1) Put together inputs from ...
261- cat(" starting nCompile\n " )
261+ # cat("starting nCompile\n")
262262
263263 dotsDeparses <- unlist(lapply( substitute(list (... ))[- 1 ], deparse ))
264264 origList <- list (... )
@@ -354,7 +354,7 @@ nCompile <- function(...,
354354 # after packing up control list (e.g. from interfaces)
355355
356356 # (2) Create cppDefs
357- cat(" making cppDefs\n " )
357+ # cat("making cppDefs\n")
358358 cppDefs_info <- createCppDefsInfo(units , unitTypes , control , compileInfos )
359359 cppDefs <- cppDefs_info $ cppDefs
360360 if (isTRUE(control $ return_cppDefs )) return (cppDefs )
@@ -382,7 +382,7 @@ nCompile <- function(...,
382382
383383 if (! is.null(from_writePackage )) {
384384 # .writePackage content was provided, so we were called from writePackage
385- cat(" doing return(writePackage(...))\n " )
385+ # cat("doing return(writePackage(...))\n")
386386 return (
387387 writePackage(pkgName = from_writePackage $ pkgName ,
388388 dir = dir ,
@@ -398,7 +398,7 @@ nCompile <- function(...,
398398
399399 # From here on, we were not called from writePackage
400400 if (package ) {
401- cat(" calling writePackage for package mode\n " )
401+ # cat("calling writePackage for package mode\n")
402402 # user requests nCompile use packaging mechanism
403403 temppkgname <- basename(tempfile(" TEMPPKG" , " " ))
404404 writePackage(pkgName = temppkgname ,
@@ -412,7 +412,7 @@ nCompile <- function(...,
412412 lib <- file.path(tempdir(), " templib" )
413413 if (! dir.exists(lib )) dir.create(lib , recursive = TRUE )
414414 pkgDir <- file.path(dir , temppkgname )
415- cat(" about to try devtools::install\n " )
415+ # cat("about to try devtools::install\n")
416416 ans <- try({
417417 withr :: with_libpaths(lib , {
418418 devtools :: install(pkgDir ,
@@ -430,7 +430,7 @@ nCompile <- function(...,
430430 names(ans_ ) <- returnNames
431431 ans_
432432 })
433- cat(" done trying devtools::install\n " )
433+ # cat("done trying devtools::install\n")
434434 if (inherits(ans , " try-error" )) {
435435 stop(" It looks like the package code was generated without stopping,\n " ,
436436 " but there was an error installing or loading it.\n " ,
@@ -443,7 +443,7 @@ nCompile <- function(...,
443443 } else {
444444 # We will not use packaging mechanism
445445 RcppPacket_list <- cppDefsList_2_RcppPacketList(cppDefs )
446- cat(" doing nCompile_finish_nonpackage\n " )
446+ # cat("doing nCompile_finish_nonpackage\n")
447447 return (
448448 nCompile_finish_nonpackage(units = units ,
449449 cppDefs = cppDefs ,
@@ -471,7 +471,7 @@ writePackage <- function(...,
471471 modify = get_nOption(" modifyPackageFiles" ),
472472 memberData = list (),
473473 roxygen = list ()) {
474- cat(" starting writePackage\n " )
474+ # cat("starting writePackage\n")
475475 require(Rcpp )
476476 pkgDir <- file.path(dir , pkgName )
477477 modify <- match.arg(modify , c(" no" , " add" , " clear" ))
@@ -494,7 +494,7 @@ writePackage <- function(...,
494494 if (is.null(content )) { # this means we are being called directly, not from nCompile
495495 # We call nCompile with control$.writePackage containing arguments needed for
496496 # nCompile to recurse back to writePackage with control$prepared_content filled in.
497- cat(" calling nCompile\n " )
497+ # cat("calling nCompile\n")
498498 res <- nCompile(... ,
499499 dir = dir ,
500500 env = parent.frame(), # will not be used
@@ -545,7 +545,7 @@ writePackage <- function(...,
545545 codeDir <- file.path(instDir , " include" , " nCompGeneratedCode" )
546546 datDir <- file.path(pkgDir , " data" )
547547#
548- cat(" starting writePackage writing steps\n " )
548+ # cat("starting writePackage writing steps\n")
549549 WP_check_unit_types(units , unitTypes )
550550 cppDefs <- WP_add_roxygen_fxns_to_cppDefs(cppDefs , units , unitTypes , roxygen , roxygenFlag )
551551 full_interfaces <- WP_build_full_interfaces(units , unitTypes , interfaces , exportNames )
@@ -573,11 +573,11 @@ writePackage <- function(...,
573573 # # # message("Deleting ", compiledObjs)
574574 # # unlink(compiledObjs)
575575 # # }
576- cat(" calling compileAttributs\n " )
576+ # cat("calling compileAttributs\n")
577577 compileAttributes(pkgdir = pkgDir )
578578 update_compileAttributes_for_argPassing(Rdir ,
579579 units , unitTypes , returnNames )
580- cat(" finished writePackage\n " )
580+ # cat("finished writePackage\n")
581581 invisible (NULL )
582582}
583583
0 commit comments