Search code examples
rr-markdownquarto

Unable to render quarto in R


Am using a Windows with R version 4.2.0 (2022-04-22 ucrt) and RStudio 2022.07.1 but unable to render https://quarto.org/docs/get-started/hello/rstudio.html file. I get the error:

ERROR: Error executing 'reg': Access is denied. (os error 5)

Any leads?


Solution

  • If you get this error, it can indicate your Windows user profile doesn't give sufficient permissions.

    To solve, close RStudio, and instead of opening RStudio the usual way, right click the RStudio icon, and click 'Run as Administrator', then try again.