Installation tips

  • Easiest is to a miniconda + r-essentials install like here (If you want the hard way ask me later - i.e. the way where you can pick your R release version)

Installing packages

  • A lot of the time with jupyter systems you will encounter, you will not have permission to write to the default library so do this:

In [ ]:
# Check library location
.libPaths()

In [ ]:
# Add a local path (if it doesn't exist nothing will happen)
.libPaths(c(.libPaths(), "C:/Users/michhar/Documents/bin/rmds"))

# Then recheck
.libPaths()

In [ ]:
getwd()

In [ ]:
install.packages("ggplot2", repos = "http://cloud.r-project.org/", 
                 lib = "C:/Users/michhar/Documents/R/win-library/3.2/")

Just so you know...you can write R code in a python notebook - here are some links:

(this has some advantages such as using the more feature rich IPython kernel...but if you don't care about magics and OS interaction that much don't worry about it)

Created by a Microsoft Employee.

The MIT License (MIT)
Copyright (c) 2016 Micheleen Harris


In [ ]: