I tried, and it actually worked. I made the code in R, copied and pasted the code into a text file and saved it, and then I pasted the code from the text file into the R file and saved it once again. After that, I am able to open up the R file without any of the contents being wiped out! I appreciate your help!