[r] Having trouble setting working directory