startup - What code would you put before/after your R session? -


R allows us to run the code at the beginning / end of a session.

What code would you suggest to put there?

I know about three interesting examples (although I do not have to "how to do them" under my fingers):

  1. Session being closed History of the session on
  2. Running a fate () at the beginning of an R-session.
  3. I was thinking of having automated savings of the workspace. But I did not set up to resolve the issue of management of space (so there would always be X amount to be used for that backup)

Any other ideas? Apart from

Profile, you can define . First and . The last function I have usually got rid of any graphic display to run graphics.off () , therefore, in this case, it should go like this:

 . Last & lt; - option () {graphics.off () save.image () # Optionally, you can define specific file / folder system (paste ("cowsay", "bye @", date ()) # if You are running GNU / Linux  

and get something like this:

  ___________________________________  

However, this is not very useful while the profile file maintains the start-up. The previous function can do various tasks on "access" ... such as saving the image file or ... ...


Comments

Popular posts from this blog

google indexing -

wpf - Custom Message Box Advice -

Eclipse CDT variable colors in editor -