More on saving your command prompt history
Saving your history commands might be of importance for both beginners and advanced users. Looking the ways you use to solve some task can improve your R learning.
Just use the savehistory() to save all of your stored (history) commands into a text file.
and voilá 😉
PS: This may save some of your hairs!!