From http://stackoverflow.com/questions/7027288/error-could-not-find-function-in-r