![]() ![]() ![]() In drop-down menu, click ‘Select packages from R 2.Click magnifying glass icon next to Package Search box.In your menus, navigate to Packages & Data / Package Installer (or, in OS X, press alt+cmd+i).Open R (If you use RStudio, open the actual R program, not the RStudio interface).Alternatively, if you’re in RStudio, you can type and run sessionInfo () in the R Console. If you do that, R will tell you the current version you’re on, and whether or not there is a more updated version that you can download (circled in blue). Install the current version of R by clicking the the appropriate “Download R for” and following the prompts There, you can go to the R menu and click Check for R Updates (see image below).If both R and ggplot2 are old, first install the current version of R and then update your packages. (Or if you don’t have ggplot2 installed, run install.packages("ggplot2")) If you have the most recent version of R, but your ggplot2 is somehow out of date, run: update.packages("ggplot2"). plyr_1.8 proto_0.3-10 RColorBrewer_1.0-5 reshape2_1.2.2 scales_0.2.3 stringr_0.6.2Īs of February 10, 2013, the current version of R is 2.15.2 and the current version of ggplot is ggplot2_0.9.3 (found under ‘other attached packages’). Loaded via a namespace (and not attached): stats graphics grDevices utils datasets methods base Each of these will give you a clean workspace to start in. You can see how many packages you have available to you by starting RStudio and going to the menu Session/New Session, or Session/Restart R. ![]() en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 When you open R, or start a new session, you have only the base version of R available, and it is pretty spartan. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |