Skip to content

get_quarto_version() generates error (on Windows?) #129

@jonthegeek

Description

@jonthegeek

get_quarto_version() (which is called from platform_info()) generates an error:

sessioninfo:::get_quarto_version()
#> Warning in system2("quarto", "-V", stdout = TRUE, env = paste0("TMPDIR=", :
#> running command '"quarto"
#> TMPDIR=C:/Users/jonth/AppData/Local/Temp/RtmpmaXeax/file191d0fa62294 -V' had
#> status 1
#> [1] "NA @ C:\\PROGRA~1\\Quarto\\bin\\quarto.exe"

Created on 2026-01-26 with reprex v2.1.1

I'm not sure whether that's Windows-only, but I'm also not sure what the TMPDIR environment variable is supposed to be doing in general... and, from the error + some other experimentation, I'm not entirely confident that system2() is doing the right thing with that env arg.

system2("quarto", "-V", stdout = TRUE)[[1]] gets the desired result for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions