Keep the Value of the Last Un-assigned S Expression

SUMMARY:

If the top-level S expression is not an assignment, it is automatically assigned by the default program in the working database with the name ".Last.value" . This works even if the printing of the expression is interrupted. However, the next expression may overwrite .Last.value , so if you want it, copy it at once.

EXAMPLES:

hclust(dist(iris[,,1])) 
# OOPS, I meant to save it 
myclust <- .Last.value