7

I have rstudio 2022.12, and I'm wondering what version of quarto comes with it.

  • quarto_path() and

  • quarto_version()

Don't work

3
  • 2
    quarto::quarto_version() should work.
    – tarleb
    Commented Dec 23, 2022 at 17:16
  • this tells me: Error in loadNamespace(x) : there is no package called ‘quarto’ see solution below
    – pluke
    Commented Jan 6, 2023 at 19:36
  • 1
    Obviously i could load quarto to make these work!
    – pluke
    Commented Jan 7, 2023 at 9:45

2 Answers 2

11

Open the Terminal (not the Console) inside RStudio and type:

>quarto check

[>] Checking Quarto installation......OK
      Version: 0.9.377
      Path: C:\Program Files\Quarto\bin\
      CodePage: 1252

You can also run:

>quarto --version
1
  • 1
    Thanks, this was great. And ... esay to remember! 'quarto check' [✓] Checking Quarto installation......OK Version: 1.4.549 Path: /Applications/quarto/bin Commented Jan 29 at 4:50
5

Two possible reasons why quarto_version() did not work:

  1. You need to install the quarto R package.
  2. You need to load and attach the quarto package.
    > library(quarto)
    > quarto_version()
    [1] ‘1.3.340’
    > quarto_path()
    [1] "/usr/local/bin/quarto"

It is confusing: There is Quarto as CLI and, normally, we refer to it as the "open-source scientific and technical publishing system". But there is also a quarto package, that provides an "R Interface to 'Quarto' Markdown Publishing System".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.