Creating outputdir for r output