Create directories for r output