swirldev / swirl

:cyclone: Learn R, in R.
http://swirlstats.com
Other
1.14k stars 601 forks source link

Trouble Installing: "There is no package called 'rlang'" #709

Open Wyspr opened 6 years ago

Wyspr commented 6 years ago

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

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?

boisvenu commented 6 years ago

for the love of pete someone please fix this. It is causing all kinds of problems.

MostafaRLotfi commented 5 years ago

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. :)

aufawibowo commented 5 years ago

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.

Huwbacca22 commented 5 years ago

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.

nmacknight commented 4 years ago

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.

harishankarpv commented 4 years ago

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?>

ethanbaxterUCSB commented 4 years ago

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.

ZekeMarshall commented 4 years ago

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 .

milicajevremovic commented 4 years ago

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.

IsmaelCaballero commented 3 years ago

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

HuangYS111 commented 2 years ago

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