For a long time, gfortran support on macOS could be achieved by installing the homebrew cask gfortran. As of 2021, both the brew cask command and the cask gfortran are deprecated. This article explains how to set up gfortran for R package development on macOS.