This is just a quick post, with a neat little trick.
I use Linux (Ubuntu) at home and Windows in the lab, which can be frustrating for coding in R since I like to keep my work in nicely sorted working directories. I used to have to have two ‘setwd’ commands at the head of every R file, one for Windows and one for linux, and I would just accept that I’d get an error thrown. No big deal.
Check this out:
That’s right friends, you know what part of my directory tree looks like. It tests whether I am in a ‘unix’ type system, and if I’m not, it gives me a Windows directory. Rad!
While I’m at it, Watch the Throne is a pretty decent album isn’t it?