Installing some basic R stuff

I am not going to talk about how to install R and all that. You are supposedly a programmer of sort = figure that stuff out. You can do it ! First part of being good anything is acquiring the ability to figure things out. I am not saying that you are going to download R and it will all go smoothly because most likely it will not. Install R then install RStudio. RStudio is the good stuff. If you are stuck, google it. You will most likely end up in a stackoverflow page.

AnyWHO !

I have been taking some classes on Coursera and I had to install some R packages as I progressed in those courses. There is a thing called R essentials – google is your friend – but I did not want to do that. Yet … Here I am today looking at a shell prompt filled with outputs from installing R packages.

I am running Ubuntu. If you are on Windows, I have two things to say 1st: I am sorry you are going through that. 2nd: I don’t care about your Windows problems. I can not afford a mac with hardware that is worth a damn at the moment so I am working on Elementary OS which is based on Ubuntu 14.04

Sooner or later you are going to need to handle Excel files. Hate all you want – myself included – but the fact is a lot of people still use Excel for data analysis. Open up your terminal and run this command

sudo apt-get install r-cran-rjava

Go ahead and run it. After that, open up R or reload it if you already had it open and run this one

# this is going to install the excel package
# now load the library into your current workspace

Now that we have excel taken care of, lets see what we can do about XML.

sudo apt-get install libxml2-dev

Thats going to install all the other stuff needed for the R XML library. We are trying hard here so that it wont complain about things missing and not being able to install blah blah

# this is going to install the XML package
# now load the library into your current workspace

Alrighty then… Moving onto future posts.