下载的swirl包,在压缩中下载了它的所有文件,但是当运行一个命令在R中解压缩它时,它显示了下面的msg
install_course_zip("~/Downloads/swirl_courses-master.zip", multi=TRUE, which_course="R Programming")解压缩错误(路径,list = TRUE):无法打开zip文件'C:/Users/sony/Documents/Downloads/swirl_courses-master.zip‘
发布于 2016-08-13 18:07:49
第一步(安装R之后,当然是启动R之后):
> install.packages('swirl')
--- Please select a CRAN mirror for use in this session ---
trying URL ...Your selected CPAN mirror...
Content type 'application/x-gzip' length 98565 bytes (96 KB)
==================================================
downloaded 96 KB
* installing *source* package 'swirl' ...
** package 'swirl' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (swirl)
The downloaded source packages are in
'/tmp/RtmpUfIWep/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done请注意,在开始时,当被要求选择一个CPAN镜像时,应该出现一个图形菜单,在这里您必须单击- select。
然后加载库以使用其功能:
library(swirl)最后,安装课程(注意:不要在此之前启动swirl() ):
> install_from_swirl("R Programming")
|======================================================================| 100%
| Course installed successfully!然后,开始这个课程:
> swirl()
| Welcome to swirl! Please sign in. If you've been here before, use the same
| name as you did then. If you are new, call yourself something unique.
What shall I call you? 告诉我这些步骤中有哪些失败了。
https://stackoverflow.com/questions/38925758
复制相似问题