'R plot doesn't shows on Mac but the same plot shows on Windows

Yesterday I bought a Mac (M1 processor) and today I installed R and R Studio. I tried to plot the same code in a Windows machine and my Mac, but the plot only shows on Windows. On Mac the "plots" window only shows a white box and if I try to export it, the same white box appear.

The code is:

library(ggshakeR)
 
 library(worldfootballR)
 
 single_player <- fb_player_scouting_report("https://fbref.com/en/players/f586779e/Tammy-Abraham", pos_versus = "primary")
 
 pizza <- plot_pizza(data = single_player, type = "single", template = "forward",    colour_poss = "#41ab5d", colour_att = "#fec44f", season = "Last 365 Days", colour_def = "#de2d26", theme = "dark")
 pizza


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source