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

I receive this error when I type library(swirl): Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘yaml’ Error: package or namespace load failed for ‘swirl’ #190

Closed
justincherveny opened this issue Aug 13, 2014 · 11 comments

Comments

@justincherveny
Copy link

I have already tried

install.packages("swirl")

and

install.packages("swirl", dependencies=TRUE)

and

install.packages("evaluate")

which were recommended from the February class. I am still getting that error, though. Any ideas? thanks very much,

  • Justin
@justincherveny
Copy link
Author

Update/Note: I didn't have any problem actually downloading the packages. It's just when I type library(swirl) that I get the problem. I have checked my directory and it's pointed at the right folder. I even extracted the files from each zip file myself into the same folder and it didn't work.

@ncarchedi
Copy link
Member

The key phrase from the error is there is no package called ‘yaml’. See if install.packages("yaml") helps. For some reason swirl's dependencies weren't installed correctly.

@justincherveny
Copy link
Author

Thanks for getting back to me! Actually I figured out what happened.

First of all your response makes sense. I was basing my troubleshooting on other people's posts for errors containing "there is no package called 'evaluate'" and didn't put 2 and 2 together that there was an 'evaluate' folder.

I actually DID successfully install the yaml folder, but I didn't 'extract all' from the folder. Once I extracted all, library(swirl) works. Thank you!

@ncarchedi
Copy link
Member

Okay, great. Let us know if you run into any more issues.

@dhlblackman
Copy link

Thank you for posting this response. I was having trouble getting swirl to run, but taking your advice, I installed the one package that seemed to be missing (crayon) and was on my way to using swirl! Great tool!

@HuruyBelay
Copy link

I get a problem in loading car package:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘minqa’
Error: package or namespace load failed for ‘car’

Any one had such type of problems

@seankross
Copy link
Member

Have you tried installing minqa on your own?

@HuruyBelay
Copy link

HuruyBelay commented Mar 31, 2017 via email

@AshiniMK
Copy link

Hi, I am getting a similar error (please see below) and am completely new to R. Could someone please guide me? I am using a Mac.

The downloaded source packages are in
‘/private/var/folders/1w/6fwzwpzs06q949rgdtjj60lr0000gn/T/RtmpMIT764/downloaded_packages’

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

@shahnawazm786
Copy link

hello i am getting the same problem but asking to install foreign package.
when i try to install the package, it is showing the message as following
Warning in install.packages :
package ‘foreign’ is not available (for R version 3.6.1)
please guide me how to fix this problem.
i want to use vif() function
Thanks

@SQL-realname
Copy link

Hi Here is the error I got below. I appreciate your help!

library("swirl")
Error: package or namespace load failed for ‘swirl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/digest/libs/digest.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/digest/libs/digest.so, 6): Symbol not found: ___cxa_uncaught_exceptions
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libc++.1.dylib
Expected in: /usr/lib/libc++abi.dylib
in /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libc++.1.dylib

library(swirl)
Error: package or namespace load failed for ‘swirl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/digest/libs/digest.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/digest/libs/digest.so, 6): Symbol not found: ___cxa_uncaught_exceptions
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libc++.1.dylib
Expected in: /usr/lib/libc++abi.dylib
in /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libc++.1.dylib

Before that, I have done

install.packages("swirl")
install.packages("bitops")
install.packages("R6")
install.packages("evaluate")
install.packages("swirl", dependencies=TRUE)

This is what I have when I typed:

sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.1

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base

loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3 RCurl_1.98-1.2 bitops_1.0-6

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

8 participants