简体   繁体   English

无法在RStudio中安装Swirl课程

[英]Unable to install Swirl Courses in RStudio

I'm trying to install Swirl courses in RStudio on 64-bit Ubuntu 15.10, and I am running across an error. 我正在尝试在64位Ubuntu 15.10上的RStudio中安装Swirl课程,但遇到错误。 I tried to install a course using the command install_from_swirl("Data_Analysis") , but the system either just hangs (R needs to be interrupted to recover from this), or I get the following error: 我试图使用命令install_from_swirl("Data_Analysis")安装一门课程,但是系统要么只是挂起(需要中断R以便从中恢复),否则我得到以下错误:

Error in unzip(path, list = TRUE) : 
  zip file '/home/xxxxx/R/x86_64-pc-linux-gnu-library/3.2/swirl/Courses
 /temp.zip' cannot be opened

The temp.zip doesn't appear to be a zip archive (I'm unable to open in on the command line). temp.zip似乎不是zip存档(我无法在命令行中打开)。

You actually helped me with the command! 您实际上帮助了我! I used 我用了

    install_course("Data Analysis")

but it didn't work, then I used 但这没用,然后我用

    install_from_swirl("Data_Analysis")

and it worked! 而且有效! Try running the swirl library first: 尝试先运行漩涡库:

    library("swirl")
    install_from_swirl("Data_Analysis")    # CASE SENSITIVE!
    swirl()

I wish you luck! 祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM