Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wyspr opened this issue May 31, 2018 · 11 comments
Open

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

Wyspr opened this issue May 31, 2018 · 11 comments

Comments

@Wyspr
Copy link

Wyspr commented May 31, 2018

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?

@boisvenu
Copy link

boisvenu commented Jun 1, 2018

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

@MostafaRLotfi
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

ZekeMarshall commented Jul 31, 2020

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
Copy link

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
Copy link

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
Copy link

HuangYS111 commented Oct 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests