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

Error in unzip(path, list = TRUE) when using install_course_github #12

Closed
kdaily opened this issue Jan 29, 2015 · 4 comments
Closed

Error in unzip(path, list = TRUE) when using install_course_github #12

kdaily opened this issue Jan 29, 2015 · 4 comments

Comments

@kdaily
Copy link

kdaily commented Jan 29, 2015

> install_course_github('kdaily', 'Synapse', multi=TRUE)
Error in unzip(path, list = TRUE) : 
  zip file '/home/kdaily/R/x86_64-redhat-linux-gnu-library/3.1/swirl/Courses/temp.zip' cannot be opened

Installing from that zip does not work:

> install_course_zip("/home/kdaily/R/x86_64-redhat-linux-gnu-library/3.1/swirl/Courses/temp.zip")
Warning message:
In unzip(path, exdir = file.path(system.file(package = "swirl"),  :
  error 1 in extracting from zip file

Downloading as zip (https://github.com/kdaily/SwirlSynapse/archive/master.zip) and installing works:

> install_course_zip("~/src/SwirlSynapse-master.zip")
> 
| Please choose a course, or type 0 to exit swirl.

1: Getting and Cleaning Data
2: Statistical Inference
3: SwirlSynapse-master
4: Synapse
5: Take me to the swirl course repository!
> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-redhat-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8   
 [6] LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] synapseClient_1.5-4 swirlify_0.3.0.99   swirl_2.2.21       

loaded via a namespace (and not attached):
 [1] digest_0.6.4    htmltools_0.2.6 httpuv_1.3.0    httr_0.5        mime_0.2        R6_2.0          Rcpp_0.11.3     RCurl_1.95-4.3 
 [9] RJSONIO_1.3-0   shiny_0.10.2.1  shinyAce_0.1.0  stringr_0.6.2   testthat_0.9.1  tools_3.1.2     whisker_0.3-2   xtable_1.7-4   
[17] yaml_2.1.13    
@kdaily
Copy link
Author

kdaily commented Jan 29, 2015

Think this is my problem; directory structure isn't right...

@seankross
Copy link
Member

The folder Synapse in https://github.com/kdaily/SwirlSynapse should be the repository. Sorry this isn't better documented. Then you should be able to use install_course_github('kdaily', 'whateverYouNameTheRepository').

@seankross
Copy link
Member

Here's an example stand-alone course: https://github.com/WilCrofter/For_swirl_Authors. It can be installed with install_course_github("WilCrofter", "For_swirl_Authors").

@kdaily
Copy link
Author

kdaily commented Jan 29, 2015

Thanks again @seankross.

@kdaily kdaily closed this as completed Jan 29, 2015
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

2 participants