第一步(当然是在安装 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?
告诉我这些步骤中是否有任何(以及哪些)失败了。