Command to create a File in R

R Command to create an R File

R Command for creating an R file

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 Analysts. User created packages like ggplot2 (graphical), Sweave(reporting) etc. can be integrated with R, which makes R programming so powerful.r command

In this r programming tutorial/post we are discussing how to create an R file using R command.


When you are working in the programming environment having the ability to use the commands for creating or manipulating the files is always useful.

How to:

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


Step 2: Now create a file in the active directory using the below R command.


**replace the “mytestFile” with your actual file name you want to create.

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


About Anson

I’m Anson having a decade of versatile experience in Business Process Outsourcing, Finance & Accounting, Information Technology, Operational Excellence & Business Intelligence. I have got the opportunity to work for Genpact, Hewlett Packard, M*Modal and Capgemini in various roles and responsibilities, starting from an Associate to a Manager. Learning anything new has always been my passion and if related to Business and Technology then I love it. is an outcome of my passion towards the same and I have been into asKeygeek since 2012. Outside business and technology I’m a movie buff who spends hours together watching and learning Cinema, I do make Short Films 🙂

One Comment

  1. Pingback: R Command to create an R File | asKeygeek | Sc...

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.