KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a Macintosh and I am trying to automatically load packages, homemade functions, and use modified setting every time I start R. I believe this can be done with a file called Rprofile.site, and by creating the functions .First and .Last in that file. One problem is, I have no idea what my R_HOME directory is, what it is used for, or if it even exists. I found two functions that I thought both gave me its location but I am getting different results. Here's the first > Sys.getenv("R_home") R_home "" And the second > R.home() [1] "/Library/Frameworks/R.framework/Resources" As far as I can tell that second directory doesn't even exist on my machine. I am currently running R from my applications directory.
Tags (comma-separated)
Save Edits
Cancel