Build -> Check gives an annoying ERROR

[Env: RStudio 2025.09.0+387, R 4.5.1, Windows 10]

Whenever I check a package using the GUI options Build -> Check it ends with an error message and a Quarto warning:

   ERROR: Unknown command "TMPDIR=C:/Users/friendly/AppData/Local/Temp/Rtmp6FHg4o/filefc1044733d2". Did you mean command "install"?
   Warning message:
   In system2("quarto", "-V", stdout = TRUE, env = paste0("TMPDIR=",  :
     running command '"quarto" TMPDIR=C:/Users/friendly/AppData/Local/Temp/Rtmp6FHg4o/filefc1044733d2 -V' had status 1

That doesn't seem to have any effect, but it is annoying to see this all the time.

Is this a known bug, or some problem with my installation?

Note added: In addition, I just ran revdepcheck::revdep_check() on my package. I get the same warning there:

Warning messages:
 ...
2: In system2("quarto", "-V", stdout = TRUE, env = paste0("TMPDIR=",  :
  running command '"quarto" TMPDIR=C:/Users/friendly/AppData/Local/Temp/RtmpKUcqVD/file102e028f72bba -V' had status 1

This is a known RStudio Bug:

Error when running R CMD CHECK via "Check" button in Build pane (Windows-specific) · Issue #15805 · rstudio/rstudio

However, at the end it seems to boil down to a problem in sessioninfo. You can get rid of the message by updating sessioninfo to the github version (currently 1.2.3.9000, see here) using renv::install("r-lib/sessioninfo").