question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: package or namespace load failed for ‘dplyr’ in dyn.load(file, DLLpath = DLLpath, ...)

See original GitHub issue

Hi, my OS is Pop!_OS 22.04 LTS and I downloaded radian via conda. I faced this error while importing R libraries. The problem is not just limited to dplyr.

Error: package or namespace load failed for ‘dplyr’ in dyn.load(file, DLLpath = DLLpath, …): unable to load shared object ‘/home/xxx/R/x86_64-pc-linux-gnu-library/4.1/dplyr/libs/dplyr.so’: /home/xxx/anaconda3/envs/sds/bin/…/lib/libstdc++.so.6: version `GLIBCXX_3.4.29’ not found (required by /home/xxx/R/x86_64-pc-linux-gnu-library/4.1/dplyr/libs/dplyr.so)

I tried several solutions online, but none worked so far. I tried to reinstall R and reinstall the packages as well. Radian works as long as I am not using R libraries. R and RStudio also works fine.

Any idea what might be the issue?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
atanasjcommented, Jun 2, 2022

I think I may be having a similar issue on an MBP 13" late-2013. I get a similar error when using radian, but works with normal R:

image

I have my packages (e.g.,tidyverse) stored in a separate directory to that provided by R so that I don’t have to reinstall when upgrading R versions. I don’t see how this would impact it, since my understanding is that radian just wraps around R anyway. Any suggestions on how I would fix this?

ProductName:	macOS
ProductVersion:	11.6.5
BuildVersion:	20G527
radian version: 0.5.13
r executable: /Library/Frameworks/R.framework/Resources/bin/R
r version: 4.2.0
python executable: /usr/local/opt/python@3.9/bin/python3.9
python version: 3.9.13
R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics"
0reactions
atanasjcommented, Jul 22, 2022

I’ve just uninstalled R and reinstalled via brew and it seems to work now… However, my site library is not picked up on Emacs and I get a similar error to that posted earlier. Also, when installing R from CRAN again, R Studio doesn’t find my user site library, nor does the R.app or radian. R from CRAN works fine on the terminal and in Emacs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rror: package or namespace load failed for 'dplyr' #5214
I have been using dplyr, but suddenly it stopped working, I re-started R and when loading library(dplyr) I get the following error: Error: ......
Read more >
Error: package or namespace load failed for 'tidyverse' in dyn ...
I am having trouble loading the tidyverse library. ... Error: package or namespace load failed for 'tidyverse' in dyn.load(file, DLLpath = DLLpath, ....
Read more >
R unable to load dplyr
1 Answer 1 · Never ever do sudo R . You want to write to /usr/local/lib/R/site-library and for that you can 1. ·...
Read more >
Problems installing dplyr on Centos 8
Problems installing dplyr on Centos 8. 166 views ... Error in dyn.load(file, DLLpath = DLLpath, ...) : ... ERROR: lazy loading failed for...
Read more >
Easily Install and Load the Tidyverse • tidyverse
The tidyverse is a set of packages that work in harmony because they share common data representations and API design. This package is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found