One of those is called RStudio, and it’s the one I’m going to suggest that you use. There are lots of different applications that you can use that will let you interact with R. When you install R initially, it comes with one application that lets you do this: it’s the R.exe application on a Windows machine, and the R.app application on a Mac. You can use this language through lots of different applications. Rather, it refers to the underlying statistical language. The term R doesn’t really refer to a specific application on your computer. To understand why I’ve suggested this, you need to understand a little bit more about R itself. Okay, so regardless of what operating system you’re using, the last thing that I told you to do is to download RStudio. You can now open up R in the usual way 16 if you want to, but what I’m going to suggest is that instead of doing that you should now install RStudio. Once it’s finished, you’ll find a file called R.app in the Applications folder. The installation should go smoothly from there: just follow all the instructions just like you usually do when you install something. Once you’ve downloaded R-3.0.2.pkg, all you need to do is open it by double clicking on the package file. It’s about 61MB in size, so the download can take a while on slower internet connections. Click on that link and you’ll start downloading the installer file, which is (not surprisingly) called R-3.0.2.pkg. 15 There’s a fairly prominent link on the page called “R-3.0.2.pkg”, which is the one you want. The vast majority of Mac users will have a fairly recent version of the operating system: as long as you’re running Mac OS X 10.6 (Snow Leopard) or higher, then you’ll be fine. When you click on the Mac OS X link, you should find yourself on a page with the title “R for Mac OS X”. You can now open up R in the usual way if you want to, but what I’m going to suggest is that instead of doing that you should now install RStudio. You can access it from the Start menu, or from the desktop if you asked it to add a shortcut there. Once all that is done, you should have R installed on your system. The default values should be fine for most people, so again, just click through. After you click through those, it’ll ask you where you want to install it, and what components you want to install. As with any software you download online, Windows will ask you some questions about whether you trust the file and so on. Once you’ve downloaded the file, double click to install it. The file for version 3.0.2 is about 54MB in size, so it may take some time depending on how fast your internet connection is. Click on that and your browser should start downloading a file called R-3.0.2-win.exe, or whatever the equivalent version number is by the time you read this. This will take you to a page that has a prominent link at the top called “Download R 3.0.2 for Windows”. Again, at the very top of the page you’ll be told to click on a link that says to click here if you’re installing R for the first time. If you click on that, it will take you to a page that offers you a few options. In general you’ll find a link at the top of the page with the text “Download R for Windows”. You can then start RStudio from the Console by simply typing. where ‘-1.2.5XXX’ is the current version for Ubuntu (b at the time of writing). But it’s not difficult to find what you’re after. deb file navigate to where you downloaded the file and then enter the following command with root permission. The CRAN homepage changes from time to time, and it’s not particularly pretty, or all that well-designed quite frankly. As of this writing, the current version of R is 3.0.2 (Frisbee Sailing“), but they usually issue updates every six months, so you’ll probably have a newer version. If you follow the relevant link, you’ll see that the online instructions are pretty self-explanatory, but I’ll walk you through the installation anyway. Anyway, R is freely distributed online, and you can download it from the R homepage, which is:Īt the top of the page – under the heading “Download and Install R” – you’ll see separate links for Windows users, Mac users, and Linux users. Or something along those lines: I may be confusing computers with the iPad marketing campaigns. Just as with any piece of software, R needs to be installed on a “computer”, which is a magical box that does cool things and delivers free ponies. Tufts Data Lab R and RStudio Basics Getting started with R and RStudio Created by Tania Alarcon, March 2018 Last edited by Kyle Monahan, April 2018 Contents 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |