def flush(self):
value = '<STR_LIT>'.join([str_to_unicode(s, '<STR_LIT:utf-8>') for s in self.Rstdout_cache])<EOL>self.Rstdout_cache = []<EOL>return value<EOL>
Flush R's stdout cache to a string, returning the string.