0

下载swirl的包,在 zip 中下载了它的所有文件,但是当运行命令在 R 中解压缩它时,它显示以下消息

install_course_zip("~/Downloads/swirl_courses-master.zip", multi=TRUE, which_course="R Programming")

解压缩错误(路径,列表 = TRUE):无法打开 zip 文件“C:/Users/sony/Documents/Downloads/swirl_courses-master.zip”

4

1 回答 1

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? 

告诉我这些步骤中是否有任何(以及哪些)失败了。

于 2016-08-13T18:07:49.960 回答