Thanks — that is helpful! However, I noticed that you didn't format what you pasted. It's important to format console output properly before posting because unformatted console output can contain sequences of characters that are misinterpreted by this forum software as special commands, which can make the output difficult (or impossible) to understand. I fixed it for you above, but in the future please remember to format all code and console output you post here using the little </> button (you can also edit any of your posts by clicking on the little pencil icon at the bottom).
Hmm, I'm not totally sure what's wrong but the package is failing to build and there are some warnings about your locale settings. Can you please paste in the output of running sessionInfo() at the console? (Don't forget to format it!
)
Edited to add: if you can't get this package to work, there is some overlapping functionality provided by ggfortify — see this vignette: https://cran.r-project.org/web/packages/ggfortify/vignettes/plot_pca.html. ggfortify tries to replicate the way that base R plot() "knows" what type of plot to make out of an object. If you're not familiar with that philosophy of plotting, you might want to start with the ggfortify basics vignette: https://cran.r-project.org/web/packages/ggfortify/vignettes/basics.html.