Examples for 'callr::r_bg'


Evaluate an expression in another R session, in the background

Aliases: r_bg

Keywords:

### ** Examples

## Don't show: 
if (FALSE) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
## End(Don't show)
rx <- r_bg(function() 1 + 2)

# wait until it is done
rx$wait()
rx$is_alive()
rx$get_result()
## Don't show: 
}) # examplesIf
## End(Don't show)

[Package callr version 3.7.0 Index]