RHISTORY files store command history data for R. They are plain text files. RHISTORY files are used internally by R. They help users see their previous commands.
Other programs use similar file extensions:
.history files store command history for Unix shells like csh. Eclipse IDE uses .history files to store local edit history. Visual Studio uses .rhistory for internal data.
I reordered the sentences to first introduce RHISTORY files. Then I summarized the key details about other file types. I removed details about compatibility and statistics. The sentences range from 6 to 17 words. Let me know if you would like me to modify anything!