Repository navigation
Commit cbd7a8f
authored
Redirect resolver stdout to stderr (#139)
* Redirect resolver stdout to stderr
The resolver subprocess (pak/renv) writes package install progress to
stdout, which pollutes the script's actual output. Pipe the resolver's
stdout and forward it to stderr so that `ir run script.R | cmd` works
cleanly even on first run when packages need to be installed.
Fixes #138
* Simplify resolver stdout-to-stderr redirect
Use io::stderr() directly as the child's stdout target instead of
piping through a forwarding thread. Available since Rust 1.74.1 parent fc00371 commit cbd7a8f
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | 522 | | |
524 | 523 | | |
525 | 524 | | |
| |||
0 commit comments