How to create a directory in R

R Programming command to create a directory in R

R command to create a directory in R

What is it:

R is a free software programming language used in the field of statistical computing and graphics. This program is mainly used by Statisticians and Data in r

In this r programming tutorial/post we are discussing on how to create a directory in r using R command.


Operating systems will have simpler way of creating directory however when you are working in the programming environment having the ability to use the commands for manipulating the files or tasks like this is very useful.

How to:

Step 1: If you do not know your active directory then check the same using the below r command.


Step 2: Now create a new directory within the active directory using the below r command.


**replace the “mytestdir” with your actual directory name you want to create.

Note: Make sure you are using the commands after the ‘>’ symbol.

About Anson

I’m Anson, having versatile experience in Business Process Outsourcing, Finance & Accounting, Information Technology, Operational Excellence & Business Intelligence. I'm currently working in a MNC in Bangalore, India. Learning anything new has always been my passions and if its related to Business and Technology then, I love it. This website/blog is an outcome of my passion towards it and I have been blogging since 2012. Outside business and technology I’m a movie freak who spends hours together watching and learning Cinema.

One Comment

  1. Pingback: R command to create a directory in R | asKeygee...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.