swirl
swirl copied to clipboard
Trouble Installing: "There is no package called 'rlang'"
I've installed swirl with the command
install.packages("swirl")
When I type
library("swirl")
Error: package or namespace load failed for ‘swirl’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘rlang’
I then tried
install.packages("rlang")
There is a binary version available but the source version is later: binary source needs_compilation rlang 0.2.0 0.2.1 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) installing the source package ‘rlang’
trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.2.1.tar.gz' Content type 'application/x-gzip' length 325006 bytes (317 KB)
downloaded 317 KB
- installing source package ‘rlang’ ... ** package ‘rlang’ successfully unpacked and MD5 sums checked ** libs xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools. ERROR: compilation failed for package ‘rlang’
- removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rlang’ Warning in install.packages : installation of package ‘rlang’ had non-zero exit status
The downloaded source packages are in ‘/private/var/folders/6c/_mk4v8w91rv3r97rn173sf1m0000gn/T/RtmpKXf4TE/downloaded_packages’ There were 12 warnings (use warnings() to see them)
The 12 warnings were all
In value[3L] : there is no package called ‘rlang’
Does anyone have any suggestions?
for the love of pete someone please fix this. It is causing all kinds of problems.
I restarted RStudio but that didn't help. I used install.packages("dplyr") (reinstalled the package) and that worked for me (the 'rlang' error didn't show up anymore). Hope this helps someone. :)
I restarted RStudio but that didn't help. I used install.packages("dplyr") (reinstalled the package) and that worked for me (the 'rlang' error didn't show up anymore). Hope this helps someone. :)
This works. I use microsoft open R and rstudio. Did this and it solved the problem.
Dplyr seems to cause a whole bunch of problems with other packages, including ggplot for the same rLang dependancy.
I just uninstalled it and it solved this problem entirely.
I had the original issue that was posted, and tried install.packages("dplyr") only to get the same issue with rlang.
installation of package ‘rlang’ had non-zero exit status.
Feelsbadman
I'm on R 3.6.
I restarted RStudio but that didn't help. I used install.packages("dplyr") (reinstalled the package) and that worked for me (the 'rlang' error didn't show up anymore). Hope this helps someone. :)
I tried this but didnt help. Still getting the same error. Any other suggestions?>
To preface, I don't know anything about swirl.
I found this thread when trying to fix a similar problem, and updating all installed packages seemed to fix the problem for me.
I have also had this problem in the past. I fixed this by deleting the rlang file in ~\Documents\R\win-library\4.0, then reinstalling rlang from RStudio, which allowed me to successfully install and update the packages which were previously triggering this error. Also see here: https://stackoverflow.com/questions/63143716/error-package-or-namespace-load-failed-for-tidyverse-there-is-no-package-call, https://stackoverflow.com/questions/59270923/ggplot2-fails-to-load-with-rlang-package-error?rq=1, https://stackoverflow.com/questions/44235290/error-compilation-failed-for-package-rlang-in-rstudio-debian-jessie-8-0?rq=1 .
I restarted RStudio but that didn't help. I used install.packages("dplyr") (reinstalled the package) and that worked for me (the 'rlang' error didn't show up anymore). Hope this helps someone. :)
This is legit. Did this and it solved the problem.
I restarted RStudio but that didn't help. I used install.packages("dplyr") (reinstalled the package) and that worked for me (the 'rlang' error didn't show up anymore). Hope this helps someone. :)
This install.packages("dplyr") solved to me on version 4.1.1 (2021-08-10). Thank you very much
please sir ,try another way:download directly from CRAN,and choose the version(4.1.1) for your R(4.1.1), https://cran.r-project.org/web/packages/rlang/index.html