You can temporary store values in a list
and also make an assignment inside it. But I don't recommend this way, just to show another possibility.
a <- 1b <- 2b <- list(a, a <- b)[[1]]a#[1] 2b#[1] 1
Using a temporary variable might be easier to read and might be more performant.
a <- 1b <- 2. <- aa <- bb <- .rm(.)a#[1] 2b#[1] 1