This is not related to the RStudio IDE, the problem seems to be that the gdal system library is not correctly installed, I recommend you to look for ways to install gdal on Apple Silicone systems.
To overcome this limitation, post the console output as formatted code, here is how to do it.