change error message of R installing function