I am unable to execute quarto commands from the RStudio terminal. This discussion was previously opened here but not resolved.
I am on Windows 10, and I am using R 4.2.0, RStudio 2022.07.1+554 "Spotted Wakerobin" Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-22), and Quarto 1.0.38. When I installed Quarto, I selected the option to install for all users as I have administrative privileges. My installation is location in program files, as seen in the image here.
In the terminal:
the result of quarto --version is bash: quarto: command not found
I confirm that from the screenshot you shared you are using got for windows terminal probably which is an emulation of bash. In this terminal, .cmd file is not recognized as a executable and so quarto is not found in PATH without the extension.
If you switch to powershell for example, this will work ok.
Thanks @TMock for being on deck with all these questions !
We normally setup with rtools40 bash so that some specific package can be installed from source. So rtools40 bash is active to those RStudio users who requires package installation from source and it serves active in the terminal and it gives quarto command not found. It gives the same error even we use quarto.cmd or quarto.exe. But if we change our interpreter from rtool40 bash terminal to other such as Git Bash, or Command Prompt , or Power Shell, quarto command can be accessed as described in the documentation. I am discussing based on window 10 platform. So, please change your terminal resources (interpreter) to get quarto up and running at terminal.
Thank you for the suggestion, @kyawmoeaung! I did try changing the terminal resources via available options in Tools -> Global Options -> Terminal (Git bash, Command Prompt, Windows PowerShell). Then I closed all R projects and opened a new one. However, the issue still persisted for all three options.
Please make sure @shannon.pileggi that you have the extension installed in your .qmd folder (your current working directory, if the said _extensions folder is different from your qmd folder, it will turn out the error message as you have described previously). You should see _extensions folder in your working directory if you installed it correctly. Otherwise please use terminal to run quarto.cmd install extension andrie/reveal-auto-agenda and see if you find _extensions folder again. In case you can't find the folder, please try to run by changing the above suggested options again. Once you have it, you should be able to run render command at the top of your script in RStudio. Let see how it goes. For me it works with _extension folder in the working directory after running quarto install ....at terminal.
Please download example.qmd from the author's github and try it to see if it runs as he has instructed. If it works, your script will definitely work as expected.