Minor point but it's quite a long expression - you might like to extract variable on "osChecker.isWindows() ? DEFAULT_WINDOWS_R_PATH : DEFAULT_LINUX_R_PATH"