Working Directory in R

Data Science with R Programming 6 min min read Updated: Mar 07, 2026 Beginner
Working Directory in R
Beginner Topic 4 of 10

Working Directory

The working directory is the folder where R reads files and saves outputs.

r getwd() setwd("C:/data-science")

Next Tutorial: Installing R Packages

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators