R Package Problem with Swirl: library("swirl") Issue
1
0
Entering edit mode
6.0 years ago
wkmustahs21 ▴ 30

I am trying to use swirl on my R/R-studio but I am having issues with the library("swirl') part. This is what I have tried so far:

  • Fixed firewall to 'Add' R gui and R-studio
  • Placed myself as Admin for my personal laptop
  • My R version is 3.1.3
  • I have uninstalled R/R-studio several times but still nothing is really working.

So...I am not sure what to do from here to fix this issue. Does anyone have any ideas on what I can do to get this package to work??

Thanks!

SWIRL_SCREENSHOT

R software error • 3.8k views
ADD COMMENT
1
Entering edit mode

How exactly did you install it?

I have just easily installed and loaded it on my R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree". I just did:

source("http://bioconductor.org/biocLite.R") 
biocLite("swirl")
require(swirl)
ADD REPLY
0
Entering edit mode

Here is my sessionInfo....I still do not know what is causing the problem

R version 3.1.2 (2014-10-31) Platform: x86_64-w64-mingw32/x64 (64-bit)

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages: [1] BiocInstaller_1.16.5

loaded via a namespace (and not attached): [1] tools_3.1.2

ADD REPLY
0
Entering edit mode

Well, this is not an answer to OP issue. But do update R. It is 3.1.2 and current version is 3.5. It could be as simple as antivius + google desktop indexing as described here https://stackoverflow.com/questions/5700505/windows-7-update-packages-problem-unable-to-move-temporary-installation and https://www.r-statistics.com/2011/04/how-to-upgrade-r-on-windows-7/.

ADD REPLY
0
Entering edit mode

I followed the instructions here: http://swirlstats.com/students.html

I also tried your method and I am still getting the same error message.

ADD REPLY
0
Entering edit mode

Apart from anything else, have you tried the other suggestions by russhh and cpad? Also, have you tried to literally restart your computer and then install the package as the very first thing that you do when you go back into R? Install like this (not via install.packages):

source("http://bioconductor.org/biocLite.R") 
biocLite("swirl")
require(swirl)
ADD REPLY
0
Entering edit mode

I'm fairly certain swirl is CRAN not bioconductor. You really _should_ be installing it with install.packages

ADD REPLY
0
Entering edit mode

That's funny, russhh, because I got it working via Bioconductor and was even playing around with the package yesterday. Conversely, on so many occasions, installing via install.packages from CRAN has led to issues with version number incompatibilities between the installed R version and the correct package version to obtain.

I stand by my advice to try to install via Bioconductor

ADD REPLY
0
Entering edit mode

You could define a writeable directory for storing your installed packages. For example, you could set R_LIBS_USER as described in this stack overflow post (the second answer, not the accepted answer). It seems extremely weird that you can't write to your own documents directory though.

ADD REPLY
0
Entering edit mode

also weird is the timestamp on the file down right corner on a single file. Currently OP is in temporary folder, not in user folder.

ADD REPLY
1
Entering edit mode

That is unix epoch time.

ADD REPLY
0
Entering edit mode

Good spot, cpad. How many of us were even alive in 1969?

ADD REPLY
0
Entering edit mode

Probably as separate x and y chromosomes

ADD REPLY
0
Entering edit mode

hi russhh

Would I make this directory in this line of script: trace(utils:::unpackPkgZip, edit=TRUE)?

ADD REPLY
0
Entering edit mode

No, you don't do that in R, you should follow the instructions in the stack overflow post: it explictly tells you how to set environment variables.

ADD REPLY

Login before adding your answer.

Traffic: 1455 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6