title: How to assign the result of the previous expression to a variable?
body: <p>Suppose I'm using R's interactive console, and I've just done something like this:</p>
  
  <pre><code>long_running_command()
  </code></pre>
  
  <p>That long-running command returns a value, and I've just realized that I wanted to assign that value to a variable instead of discard it. So how can I get that value without running the command again? Is there a command like this?</p>
  
  <pre><code>result = get_last_return_value()
  </code></pre>