Make R an optional dependency.