So I needed to change my R version from development to release and I did. And as it usually happens I got into trouble while trying to use some of the R packages. Luckily I found this nice RStudio post on upgrading R and I used some of the recommendations they provide.
However, then I ran into another problem which was a bit more complicated. When installing some of the packages where C++ compilation was required, my MacOS gcc installation complained that it couldn’t support OpenMP flag. I spent quite a lot of time figuiring out how to solve it until I found this very useful post. By following their recommendations I was able to fix all issues and installed all the necessary packages.