r-lib / R6

Encapsulated object-oriented programming for R
https://R6.r-lib.org
Other
403 stars 56 forks source link

Issue with R6: error message says: there is no package called 'R6' #285

Open nszekeres opened 2 months ago

nszekeres commented 2 months ago

Hello, trying to "preview" a document in markdown, and keep getting this issue:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called 'R6' Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted

Any ideas on how to resolve? FYI, I removed R and Markdown and reinstalled... it told me "success" but is still not allowing me to preview a document in html or word.

gaborcsardi commented 2 months ago

there is no package called 'R6'

Did you try installing the R6 package?

nszekeres commented 2 months ago

Thanks, now embarrassed. I surfed around and tried it again and it worked -- install.packages('R6') -- thank you.