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 call
If you run getwd()
, then you will see your R startup directory. On a mac it is typically /User/login_name
That is where I leave my .RProfile
where I load custom functions and also frequently used packages.
Also see: Useful little functions in R (to put in your .RProfile) and Expert R users, what's in your .Rprofile?…