I was wondering how to automatically detect operating system in R, for example to place things in the .Rprofile.
> Sys.info() sysname "Linux" release "2.6.32-26-generic" version "#48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010"