Some additional items need to be first installed on the SA421 virtual machine in order for this to work:
rpy2 by typing sudo pip install rpy2 at the prompt. Use
simulation when prompted for a password.
singledispatch by typing sudo pip install singledispatch at the prompt.
sudo R at the prompt.
fitdistrplus package in R by typing install.packages("fitdistrplus") at the prompt.
A dialog window will appear with a list of mirrors. Choose any one.
quit() at the R prompt. Close the UXTerm window.You should now be ready to run R and its goodness-of-fit tests in iPython Notebook.
fitdistrplus package can be found here.