Problem loading the ‘swirl’ package

Am new to Rstudio, please how do I correct this error

Error: package or namespace load failed for ‘swirl’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘R6’

Welcome to the forum.

We may need a reproducible example (reprex)

but at a guess you need to install the R6 package


and then try again.

Good luck.

The error message is telling you that you are missing the R6 package, try installing it


Do you get any error messages while doing so?

I'm still getting the same message after installing R6. Still stock here.

Warning in install.packages :
installation of package ‘R6’ had non-zero exit status
Swirl still working as R6 installation gave the above error message

This means the installation process failed but it doesnt tell us the cause, please post the complete output message you get when you try to install R6

Did you ever think that the author could have been a bit clearer? Maybe
Failed!!!, HA, HA, HA

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.