Dear All,

I am trying to clear the r()-saved results left by the previous command before going to the next one.
According to the documentation return clear should clear the r-saved results.
However the results saved in r() seem to survive this command.

Array

I have found an earlier discussion of this in this forum thread (dating back to 2015), in which Daniel Klein agrees that this behavior is a bug. If this is not fixed until now, is it some sort of desirable/intended behavior? And if so:
  1. what does return clear actually clear?
  2. how to reliably clear the r()-saved results, perhaps with a different command?
The relevant documentation paragraph seems to be using two terms, r() and return() to describe the placement of the saved results, such as, quote:
  • return list lists results stored in r().
  • return clear clears return().
Is there any difference in meaning of r() and return()? Which one should be used in which case?

Thank you, Sergiy Radyakin