Some complication to get r dependencies working.