Update R 3.5--how to reinstall

The error shows:
package ‘gurobi’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version

I tried to delete the library file of gurobi, but it doesn't work.
I also tried:
remove.packages("gurobi")
install.packages("gurobi", type = "source",repos = "C:/gurobi800/win64/R/gurobi_8.0-0.zip"), doesn't work either.

Thank you for help.

This error has been popping up a lot recently with R 3.5. The update changed some of R's internals. Since you're installing a binary package you need to have downloaded a version of the package that was built using at least 3.5.

You might touch base with the gurobi folks about it, http://www.gurobi.com/products/modeling-languages/r
Or turn to the prev version of R.