已下载swirl
软件包,以zip方式下载了所有文件,但在运行命令将其解压缩到R时,显示以下信息
install_course_zip("~/Downloads/swirl_courses-master.zip", multi=TRUE, which_course="R Programming")
解压缩时出错(path,list = TRUE):zip文件 ' C:/Users/sony/Documents/Downloads/swirl_courses-master.zip'不可能是 开
答案 0 :(得分:0)
第一步(安装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镜像时,应显示图形菜单,您必须在其中单击选择。
然后加载库以使用其功能:
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?
告诉我这些步骤是否有任何(以及哪些步骤)失败。