If your OS is Windows, look for Edit the system environment variables, edit path and add the R path above;
Edit the system environment
path
bbkhgughhghghg