Error in loadNamespace(name) : there is no package

2020-04-06 03:36发布

问题:

While adding code chuncks to my .rmd file a la:

```{r} %code chunck

```

it can't be compiled anymore, and i get a loadnamespace(name) error:

Error in loadNamespace(name) : 
there is no package called 'evaluate' calls:<Anonymous> ... tryCatch-> Trycatchlist->trycatchoone

Has anyone ever experienced it? And how do I resolve it?

回答1:

Try install.packages("evaluate") and then reattempt compilation. It was probably uninstalled unintentionally at some point.



回答2:

if it is not installed after tying install.packages('evaluate')then,press ctrl + shift + f10 on RStudio console so this command will restart R session and then try to use install.packages('evaluate') command on RStudio console.