Skip to contents

This infix operator can be used to create a background job in RStudio/Posit and, once completed, the value of rhs is assigned to lhs.

Usage

lhs %<=% rhs

Arguments

lhs

the object that the rhs value is assigned to

rhs

the value you want to assign to lhs

Value

prints the ID of the background job in the console and, once completed, the value of lhs is assigned to rhs

Examples

# Can only be executed in Rstudio
if (FALSE) x %<=% rnorm(1e7)