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
Swirl won't load in R Studio #83
Comments
Please try the following and let us know if it solves your problem:
|
Hi, |
We can be more helpful if you copy and paste your exact input and output, so we can see what's happening. Try this:
|
The diagnostic says it's trying to load package 'evaluate' which it can't find locally. Installing it may help. Package evaluate is maintained by Yihui Xie, and is a dependency of knitr. Most of us probably have knitr, hence evaluate, installed. I can't see why it should be a dependency of swirl, however. |
|
Hi Nick, |
I did both of ncarchedi's recommendations install.packages("evaluate") and install.packages("swirl", dependencies=TRUE) and I still get the same error: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : Anything else I should try?
|
Just responded here: #190 |
Saw the same thing here... the way was to install each package that it depended on individually. I got the following and it worked (meaning: i got the swirl welcome message): |
In general, install.packages() should handle package dependencies, but you can try adding the argument dependencies = TRUE in the future.
|
After numerous attempts installing 'swirl' getting a nonzero on install (which means an error) |
I got stuck in these some points described above by peers. |
Yes, it is really possible to use "swirl" in Linux Mint 17 distro. I do, for instance. I'm not sure what's going on with your system, but people do have trouble with Hadley's packages (testthat) from time to time. Make sure all the imports and dependencies are intstalled. |
Based on the requirements for testthat, testthat requires R 3.1.0 atleast and looks like you are using R 3.0.2. Can you consider upgrading R to 3.1+. The latest is 3.2. Linux Mint 17 comes with R 3.0 by default. You will need to upgrade R to 3.2. You can follow the instructions provided here. Hope this helps. |
I had the same problem on Linux Mint 17.1 (Rebecca), using R 3.0.2, but I found a workaround. For some reason, install.packages() could not handle the dependencies correctly (even with the dependencies=True option). However, as reported by others, the installation works perfectly after installing the evaluate, codetools and testthat packages using apt or synaptic (both seem to handle the dependencies well... as usual): sudo apt-get install r-cran-evaluate I also had to run rstudio as superuser (for the installation directory to be writable) sudo rstudio And then, from the R interpreter, install.packages("swirl") |
Hi, I also had the same problem. My SO is Ubuntu 14.04 LTS. I just followed the instructions from @massimolai80 and swirl is now working. The only difference is that I think that is not necessary to run rstudio as sudo. I didn't need to do that. |
I said yes to installing on a personal library and now I have to pick an HTTPS CRAN mirror. Why? |
Hi @josephinegiaimo, What country are you located in? Your geographic location is usually a good indicator of what CRAN mirror you should use. |
HI, i am also not able to load swirl,it showing errors,plz help me install.packages("swirl", dependencies=TRUE) package ‘swirl’ successfully unpacked and MD5 sums checked The downloaded binary packages are in
|
Try: install.packages("R6")
swirl() Please let me know if that works. |
pls help me to come out of this error while installing swirl in R studio |
@KVSRPVARMA Are you using an internet connection at work or school? There seems to be an issue with your connection. |
Thanks Regards, Dr. Varma On Sun, May 8, 2016 at 7:20 AM, Sean Kross notifications@github.com wrote:
Dr. K.V.S.R.P.VARMA |
Many thanks @ncarchedi . That worked for me |
Hi I get the following message when I am trying to run swirl. Does any one have a solution for this? Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : Thanks |
Hi @jfdn, What do you get as the result of |
Also when i try to load through packages i get;
|
Hi @jfdn, Are you using a computer that belongs to your workplace or school? What do you get as the result of |
Hi @seankross this is what i get when I run, sessionInfo() R version 3.3.1 (2016-06-21) locale: attached base packages: other attached packages: loaded via a namespace (and not attached): Best |
Are you still having the same issue after the change? |
Hi @seankross No, it´s working fine right now. Thank you for your time. Best |
I had the same problem where it constantly told me that swirl package does not exist when running library(swirl) after install.packages("swirl"). If you are running ubuntu 14.04 i can advise you that the following instructions worked https://github.com/swirldev/swirl/wiki/Installing-swirl-on-Linux Basically the problem (at least for me) was that the curl package which is used to download packages from the internet was not downloaded. Hope it helps |
Hello I am getting following error while installing swirl from library. library(swirl) |
System: win 10 64
How to fix it? |
@tariqulhoda that's a really bizarre error, are you sure you have the latest version of R installed? |
That's right Sean, I even reinstalled the programmer but the result give me the same. :( R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" |
@tariqulhoda can you try |
I am unable to use Swirl in R. When I install Swirl --> it shows successfully unpacked. But when I call the library then following is the error Error: package or namespace load failed for ‘swirl’ in FUN(X[[i]], ...): Any inputs please. |
Try the following, might work - |
Thanks Nidhitandon for the response. I figured out that I had two R versions in my office laptop. R studio was downloading the packages in old version of R which is outdated(blocked by internal IT) so was unable to use the library when called. Well figured out the same after few hours of diagnosis with the support team. :-) |
Hi I am trying to install swirl, but I get the error permission denied.
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/cli_1.0.0.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/crayon_1.3.4.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/praise_1.0.0.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rlang_0.2.1.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/withr_2.1.2.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/bitops_1.0-6.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/stringr_1.3.1.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/testthat_2.0.0.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/yaml_2.1.19.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/RCurl_1.95-4.10.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/swirl_2.4.3.zip' Error in install.packages : cannot open file 'C:/Users/sxcxc/Documents/R/win-library/3.5/file3970562d17a0/cli/help/figures/box-1.png': Permission denied Could any one help |
Hello. This is the error msg I got. I appreciate anyone can help! Error: package or namespace load failed for ‘swirl’ in dyn.load(file, DLLpath = DLLpath, ...): |
Hi Here is the error I got below. I appreciate your help!
Before that, I have done
This is what I have when I typed:
Matrix products: default locale: attached base packages: loaded via a namespace (and not attached): |
If you're using Ubuntu as OS, try to install these packages
|
Hello,
I downloaded swirl using install.packages in R-Studio and when I type library(swirl) I receive the following error message:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘evaluate’
Error: package or namespace load failed for ‘swirl’
My session info is:
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 LC_MONETARY=English_Canada.1252
[4] LC_NUMERIC=C LC_TIME=English_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] openintro_1.4 plotrix_3.5-2 pwr_1.1.1 stringr_0.6.2 tools_3.0.2
Hopefully you can help,
Bernie
The text was updated successfully, but these errors were encountered: