You are also missing BLAS and LAPACK. I usually install these libraries for that:
- libopenblas-base
- libopenblas-dev
- liblapack-dev
- liblapack3
Each one has its own method, check their documentation for details
https://packagemanager.rstudio.com/client/#/repos/2/overview