rstudio shuts itself down at startup (manjaro archlinux)

hello, i just installed r using pacman -S r and then installed rstudio using yay ,
but whenever i start the software rstudio it closes in a very short period of time( less than a minute) , i m running manjaro (Archlinux) , is there any solution to this issue or should i go back to windows in order to run rstudio ?

any help ?i need to prepare a project with r studio for school