Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open R project in RStudio programmatically?

Tags:

r

rstudio

In a similar way to how file.edit('foo.R') opens a file for editing in RStudio, is there a way to open an R project if you know the location of its .Rproj file?

like image 766
Stuart Lacy Avatar asked Nov 09 '22 13:11

Stuart Lacy


1 Answers

Have at look at function openProject() in package rstudioapi

like image 176
Anna Krystalli Avatar answered Nov 15 '22 08:11

Anna Krystalli