add method using ipython r magic