microsoft / RTVS

R Tools for Visual Studio.
MIT License
389 stars 118 forks source link

R session is stopped. Click "Reset" to start a new one. #4299

Closed RawanRadi closed 6 years ago

RawanRadi commented 6 years ago

every time when R calling function or executing loop this error appears `R session is stopped. Click "Reset" to start a new one.

Interactive Window is disconnected from R session. Click "Reset" to start a new session.`

for example this function usePackage <- function(p) { if (!is.element(p, installed.packages()[, 1])) install.packages(p, dep = TRUE) require(p, character.only = TRUE) } if the package does'n exist R throw the error instead of download it this error appears many time in many functions

hongooi73 commented 6 years ago

That means R has died in the background. Like it says, click Reset to restart R.

RawanRadi commented 6 years ago

I clicked on resett many times but same error appears. Restarting VS solved it