Most of you should know Gnu R, but only a few might heard about it’s .rc !
Just create the file .R.rc in your home directory, and R will parse it if you run it.
Some useful annotations:
There are to variables: `.First` and `.Last` . Assign a function to it and they are run at any start respectively quit of R.
On most screens R utilizes the width not effectively, either there is to much space left blank on the right side or the terminal breaks lines such that the output isn't readable anymore:
So define the number of characters that can be presented in one line of your terminal at the start of R.:
It's of course possible to define functions that you often need. I've two screens with different width, so I created two functions that readjust the line width if I move the terminal from one screen to the other:
So here is a part of my .R.rc to give you an example: