JK: One more attempt at getting package R to work.