On Linux systems, the Gurobi environment variables
LD_LIBRARY_PATH are usually defined in your
.bashrc file. This file might not be loaded by all tools and applications, including RStudio, resulting in "not found" errors.
To resolve the missing library errors, you should define these environment variables in your
.profile file as well.