Welcome, and sorry to see you ran into this. I receive this package installation error from time to time.
If I recall correctly, a good first step is to restart your R session (In the RStudio IDE, Session >> Restart R) and install each of those dependencies individually, and then retry pillar.
install.packages("ellipsis")
install.packages("fansi")
# etc
And follow any error or warning messages received after.