Start RStudio

With your instance running, when you return to the AWS console and select that instance you will see something like the following:

Take note of the Public DNS on the selected instance. This will be all that you need to start RStudio on your web browser of choice. When you launch that in your browser, you will come to the RStudio login page. The username and password are both rstudio:

That's it! You are now running RStudio on a virtual machine. It should look like this:

In the upper-left panel, the Source Panel, are instructions on how to change the password as well as functions to link to Dropbox. 

To show how to load data from the web, I will load one of the .csv files from github that we've used in prior chapters. Let's try climate.csv shall we? The first thing is to install and load the RCurl package:

   > install.packages("RCurl")

> library(RCurl)

We now need to get the link to the data on github:

 > url <-  
"https://raw.githubusercontent.com/datameister66/data/master/climate.csv"

Then, pull the file into RStudio:

    > climate <-read.csv(text = getURL(url))

And, be sure it worked:

    > head(climate)
Year CO2 Temp
1 1919 806 -0.272
2 1920 932 -0.241
3 1921 803 -0.187
4 1922 845 -0.301
5 1923 970 -0.272
6 1924 963 -0.292

There you have it. You are now a cloud-based machine learning warrior, able to operate on the virtual machine almost exactly like you would on your own machine.

Please remember that once you are done and quit RStudio, be sure to go back to your console and stop the instance.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset