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.

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:
Thank you, Sergiy Radyakin
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.
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:
- what does return clear actually clear?
- how to reliably clear the r()-saved results, perhaps with a different command?
- return list lists results stored in r().
- return clear clears return().
Thank you, Sergiy Radyakin
Comment