R Command to create a File in R

R Programming
Table of Contents

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 CommandPin

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

Why:

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.

getwd()

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

file.create(“mytestFile.R“)

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

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

Picture of Anson Antony
Anson Antony
Anson is a contributing author and the founder of www.askeygeek.com. His passion for learning new things led to the creation of askeygeek.com, which focuses on technology and business. With over a decade of experience in Business Process Outsourcing, Finance & Accounting, Information Technology, Operational Excellence & Business Intelligence, Anson has worked for companies such as Genpact, Hewlett Packard, M*Modal, and Capgemini in various roles. Apart from his professional pursuits, he is a movie enthusiast who enjoys spending hours watching and studying cinema, and he is also a filmmaker.

Leave a Reply

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

Over 121000+ Readers

Get connected with ASKEYGEEK.com

Recent Posts
Our Deals - up to 82% OFF

*Discount Applied Automatically

AskeyGeek

Join our community!

Subscribe
Congratulations!
You Made It,
Don't Close!
AskeyGeek INSIDER Entry Pass

This popup won’t show up to you again!!!

Let's have a chat

Fill out the form below