Rstudio automatic shutdown

Hello, Am a new user.
I have installed both R- and R-Studio.
When I try opening a folder, the entire R-Studio program shuts down. Kindly advice on what the problem is.
Thanks.