From looking at the error message, it seems your problem is upstream, as you cannot install the dependencies (the packages that car needs in order to be installed). This starts with RcppEigen which cannot be installed because you don't have the libraries necessary to build it – in this case, -lgfortran.
For future reference, unless your problem is with the IDE itself (learn more about the difference between R and RStudio in the FAQ, below), it's best to file it in a category other thanRStudio IDE!