How to get the parent directory in R language?

698    Asked by LucasBROWN in Data Science , Asked on Jan 7, 2020
Answered by Lucas BROWN

To get the parent directory in R, we can use getwd() as follows

working_dir <- getwd()

setwd("..")

 parent <- getwd()

setwd(working_dir)



Your Answer

Interviews

Parent Categories