Unable to install ggstatsplot

You shouldn't post console output as screenshots, you should post it as formatted code instead. Here is how to do it.

Now about your problem, you are choosing to install the latest versions of those packages from source but you do not have the necessary tools installed in your system.

You can either answer "no" when asked to install from source and install older binary versions or install Xcode in your system (not in R) and the recommended development tools for macOS systems.
https://mac.r-project.org/tools/