准备自学R的可以自己装一下,很方便用
Step 3: Install swirl
Open RStudio (or just plain R if you don't have RStudio) and type the following into the console:
> install.packages("swirl")
Note that the
>
symbol at the beginning of the line is R's prompt for you type something into the console. We include it here so you know that this command is to be typed into the console and not elsewhere. The part you type begins after >
.Step 4: Start swirl
This is the only step that you will repeat every time you want to run swirl. First, you will load the package using the
library()
function. Then you will call the function that starts the magic! Type the following, pressing Enter after each line:> library("swirl") > swirl()
No comments:
Post a Comment