R markdown not function

I just downloaded R studio in my new machine-Mac with M1 chip, but when I tried to open R markdown, it said that I need to download an updated version of stringi package. I clicked Yes, it downloaded automatically. However it failed. When I retried to open the Rmarkdown, it asked me to download it again... Can anyone help me with this?
Here is the code chunk when the system automatically download the stringi package.
ERROR: configuration failed for package ‘stringi’

  • removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/stringi’

The downloaded source packages are in

:heavy_check_mark: Package 'stringi' successfully installed.
Warning message:
In utils::install.packages("stringi", repos = "https://cran.rstudio.com/") :
installation of package ‘stringi’ had non-zero exit status

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.