Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I resolve "no package called '.GlobalEnv'" error in R?

Tags:

r

rstudio

I'm getting a confusing error while using RStudio. When I use the command line, in the middle of typing a command (never while executing a command), R throws the following error:

Error in loadNamespace(name) : there is no package called ‘.GlobalEnv’

I am using R version 3.2.3 and RStudio version 0.99.491; I have tried to re-install RStudio and to delete settings.

like image 849
will Avatar asked Jan 22 '16 01:01

will


1 Answers

Look at the tabs that open at startup.
In my case, it was because there was a debugging tab opened and RStudio was trying to load it at startup. I just closed it and that error stopped.

like image 125
xm1 Avatar answered Oct 09 '22 19:10

xm1