@@ -168,17 +168,14 @@ make_start_state <- function(plan, config) {
168168 package_time = I(rep_list(nrow(plan ), as.POSIXct(NA ))),
169169 package_error = I(rep_list(nrow(plan ), list ())),
170170 package_stdout = I(rep_list(nrow(plan ), character ())),
171- package_stderr = I(rep_list(nrow(plan ), character ())),
172171 build_done = (plan $ type %in% c(" deps" , " installed" )) | plan $ binary ,
173172 build_time = I(rep_list(nrow(plan ), as.POSIXct(NA ))),
174173 build_error = I(rep_list(nrow(plan ), list ())),
175174 build_stdout = I(rep_list(nrow(plan ), character ())),
176- build_stderr = I(rep_list(nrow(plan ), character ())),
177175 install_done = plan $ type %in% c(" deps" , " installed" ),
178176 install_time = I(rep_list(nrow(plan ), as.POSIXct(NA ))),
179177 install_error = I(rep_list(nrow(plan ), list ())),
180178 install_stdout = I(rep_list(nrow(plan ), character ())),
181- install_stderr = I(rep_list(nrow(plan ), character ())),
182179 worker_id = NA_character_
183180 )
184181 plan <- cbind(plan , install_cols )
@@ -221,22 +218,17 @@ handle_events <- function(state, events) {
221218handle_event <- function (state , evidx ) {
222219 proc <- state $ workers [[evidx ]]$ process
223220
224- # # Read out stdout and stderr . If process is done, then read out all
221+ # # Read out stdout. If process is done, then read out all
225222 if (proc $ is_alive()) {
226223 state $ workers [[evidx ]]$ stdout <-
227224 c(state $ workers [[evidx ]]$ stdout , out <- proc $ read_output(n = 10000 ))
228- state $ workers [[evidx ]]$ stderr <-
229- c(state $ workers [[evidx ]]$ stderr , err <- proc $ read_error(n = 10000 ))
230225 } else {
231226 state $ workers [[evidx ]]$ stdout <-
232227 c(state $ workers [[evidx ]]$ stdout , out <- proc $ read_all_output())
233- state $ workers [[evidx ]]$ stderr <-
234- c(state $ workers [[evidx ]]$ stderr , err <- proc $ read_all_error())
235228 }
236229
237230 # # If there is still output, then wait a bit more
238- if (proc $ is_alive() ||
239- proc $ is_incomplete_output() || proc $ is_incomplete_error()) {
231+ if (proc $ is_alive() || proc $ is_incomplete_output()) {
240232 return (state )
241233 }
242234
@@ -247,9 +239,8 @@ handle_event <- function(state, evidx) {
247239 # # Post-process, this will throw on error
248240 if (is.function(proc $ get_result )) proc $ get_result()
249241
250- # # Cut stdout and stderr to lines
242+ # # Cut stdout to lines
251243 worker $ stdout <- cut_into_lines(worker $ stdout )
252- worker $ stderr <- cut_into_lines(worker $ stderr )
253244
254245 # # Record what was done
255246 stop_task(state , worker )
@@ -436,7 +427,7 @@ start_task_package_uncompress <- function(state, task) {
436427 task $ args $ phase <- " uncompress"
437428 px <- make_uncompress_process(path , task $ args $ tree_dir )
438429 worker <- list (id = get_worker_id(), task = task , process = px ,
439- stdout = character (), stderr = character () )
430+ stdout = character ())
440431 state $ workers <- c(
441432 state $ workers , structure(list (worker ), names = worker $ id ))
442433 state $ plan $ worker_id [pkgidx ] <- worker $ id
@@ -465,7 +456,7 @@ start_task_package_build <- function(state, task) {
465456 needscompilation , binary = FALSE ,
466457 cmd_args = NULL )
467458 worker <- list (id = get_worker_id(), task = task , process = px ,
468- stdout = character (), stderr = character () )
459+ stdout = character ())
469460 state $ workers <- c(
470461 state $ workers , structure(list (worker ), names = worker $ id ))
471462 state $ plan $ worker_id [pkgidx ] <- worker $ id
@@ -496,7 +487,7 @@ start_task_build <- function(state, task) {
496487 px <- make_build_process(path , pkg , tmp_dir , lib , vignettes , needscompilation ,
497488 binary = TRUE , cmd_args = cmd_args )
498489 worker <- list (id = get_worker_id(), task = task , process = px ,
499- stdout = character (), stderr = character () )
490+ stdout = character ())
500491 state $ workers <- c(
501492 state $ workers , structure(list (worker ), names = worker $ id ))
502493 state $ plan $ worker_id [pkgidx ] <- worker $ id
@@ -517,7 +508,7 @@ start_task_install <- function(state, task) {
517508 px <- make_install_process(filename , lib = lib , metadata = metadata )
518509 worker <- list (
519510 id = get_worker_id(), task = task , process = px ,
520- stdout = character (), stderr = character () )
511+ stdout = character ())
521512
522513 state $ workers <- c(
523514 state $ workers , structure(list (worker ), names = worker $ id ))
@@ -565,7 +556,6 @@ stop_task_package_uncompress <- function(state, worker) {
565556 state $ plan $ package_time [[pkgidx ]] <- time
566557 state $ plan $ package_error [[pkgidx ]] <- ! success
567558 state $ plan $ package_stdout [[pkgidx ]] <- worker $ stdout
568- state $ plan $ package_stderr [[pkgidx ]] <- worker $ stderr
569559 state $ plan $ worker_id [[pkgidx ]] <- NA_character_
570560
571561 throw(new_pkg_uncompress_error(
@@ -574,8 +564,7 @@ stop_task_package_uncompress <- function(state, worker) {
574564 package = pkg ,
575565 version = version ,
576566 time = time ,
577- stdout = worker $ stdout ,
578- stderr = worker $ stderr
567+ stdout = worker $ stdout
579568 )
580569 ))
581570 }
@@ -608,20 +597,13 @@ stop_task_package_build <- function(state, worker) {
608597 } else {
609598 alert(" info" , " Standard output is empty" )
610599 }
611- if (! identical(worker $ stderr , " " )) {
612- cli :: cli_h1(" Standard error" )
613- cli :: cli_verbatim(worker $ stdout )
614- } else {
615- alert(" info" , " Standard error is empty" )
616- }
617600 }
618601 update_progress_bar(state , 1L )
619602
620603 state $ plan $ package_done [[pkgidx ]] <- TRUE
621604 state $ plan $ package_time [[pkgidx ]] <- time
622605 state $ plan $ package_error [[pkgidx ]] <- ! success
623606 state $ plan $ package_stdout [[pkgidx ]] <- worker $ stdout
624- state $ plan $ package_stderr [[pkgidx ]] <- worker $ stderr
625607 state $ plan $ worker_id [[pkgidx ]] <- NA_character_
626608
627609 if (! success ) {
@@ -632,7 +614,6 @@ stop_task_package_build <- function(state, worker) {
632614 package = pkg ,
633615 version = version ,
634616 stdout = worker $ stdout ,
635- stderr = worker $ stderr ,
636617 time = time
637618 )
638619 ))
@@ -685,7 +666,6 @@ stop_task_build <- function(state, worker) {
685666 state $ plan $ build_time [[pkgidx ]] <- time
686667 state $ plan $ build_error [[pkgidx ]] <- ! success
687668 state $ plan $ build_stdout [[pkgidx ]] <- worker $ stdout
688- state $ plan $ build_stderr [[pkgidx ]] <- worker $ stderr
689669 state $ plan $ worker_id [[pkgidx ]] <- NA_character_
690670
691671 if (! success ) {
@@ -695,7 +675,6 @@ stop_task_build <- function(state, worker) {
695675 package = pkg ,
696676 version = version ,
697677 stdout = worker $ stdout ,
698- stderr = worker $ stderr , # empty, but anyway...
699678 time = time
700679 )
701680 ))
@@ -777,7 +756,6 @@ stop_task_install <- function(state, worker) {
777756 state $ plan $ install_time [[pkgidx ]] <- time
778757 state $ plan $ install_error [[pkgidx ]] <- ! success
779758 state $ plan $ install_stdout [[pkgidx ]] <- worker $ stdout
780- state $ plan $ install_stderr [[pkgidx ]] <- worker $ stderr
781759 state $ plan $ worker_id [[pkgidx ]] <- NA_character_
782760
783761 if (! success ) {
0 commit comments