Custom Console tab

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.

How about running it as a background job?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.