I am currently trying to set up some code to run devtools::check()
in the background, but still have the output visible. Sometimes the check takes a while to run, and so this would allow the user to start acting on any output while check()
is running.
My current option is to write a command line string such as "R -e 'devtools::check()'" and push it to a new terminal by using rstudioapi::terminalExecute()
. This works fine, but I was wondering whether there is a way to track the output in a new and distinct console tab.
In my mind, this is similar to how RMarkdown creates a new console tab (and new R instance) to knit documents. My thought it that it would it require setting a specific sink()
to be a new console output of some sort.