The mgcv package is one of the recommended packages to be installed with
R. A problem with mgcv and clang/openmp 13 is that mgcv versions prior
to 1.8-37 include omp.h after including R.h. This causes a conflict
between "#define match" and an openmp pragma line, which uses match().
This problem was fixed in mgcv 1.8-37, so switch to this newer version.
PR: 258887
Reported by: dim