Have you calculated something in R that took some time but you forgot to save the result? Fear no more. .Last.value always stores the last result.

runif(5)
## [1] 0.61736122 0.02023587 0.28592244 0.60450306 0.84834418
mean(.Last.value)
## [1] 0.4752734