sckott / mutant

mutation testing for R
https://sckott.github.io/mutant/
Other
16 stars 2 forks source link

starting R sessions #3

Open sckott opened 6 years ago

sckott commented 6 years ago

https://github.com/r-lib/callr/ tests for examples https://github.com/r-lib/callr/blob/feature/session-improvements/tests/testthat/test-r-session.R

library(callr)
# start session
rs <- r_session$new()
# poll - for session to be ready to accept commands
rs$poll_io(-1)
#>   output    error  process
#> "nopipe" "nopipe"  "ready"