Catch an error in portal setup when R is not installed.

We might not always want R so it not being there should not fail things.