First you need to copy the console area to the clipboard, then run the console_cl() function to add a comment to the line where the output is, and to cancel the > on the original line. Finally, the result of the run is saved to the clipboard.
console_cl(prefix = "#>")
The prefix for code.The default is '#>'. You can edit it according to your own preference, but '#' should be the first character.
the result of the run is saved to the clipboard.