I have tried a number of different configurations, and just don't have the time to keep looking through examples. I saw this thread .Rprofile not sourced and hoped it would have the answer. The problem might be because I am working on a Windows system and it seemed that posting referred to a Mac OS. I have an R project and in the same working directory I tried adding the ".Rprofile.txt" file. I have tried the following syntax: "Rprofile", "RProfile", ".Rprofile", and ".RProfile". I have been able to run the file using source()
and that seemed to work. In the link above, it mentioned needing the trailing newline character. I tried that on a separate line, at the end of the script, and at the end of the script with a space. I cannot figure out what the nuance is that I am not picking up. Can someone please help? This is my script:
print("The stringsAsFactors have been disabled. We are loading some common libraries")
suppressMessages(require(xlsxjars))
suppressMessages(require(xlsx))
suppressMessages(require(purrr))
suppressMessages(require(crayon)) \n
Lastly, I insterted the print()
statement so I could see if the script was being picked up. That isn't happening. Thanks for your help in advance, and I am sorry, but without examples the other postings don't quite fix the problem.