Quarto Running R CMD Check in RStudio

When running R CMD Check on a package in RStudio, the package passes the check, i.e., no errors, no notes, no warnings, by I get the following ERROR message that seems to have something to do with the quarto that is automatically installed when installing RStudio.

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

I have no clue what is going on. Does anybody know how I can avoid that ERROR????
Doug Martin

2 Likes

Seeing the same issue. Started work on updating a package I have not touched for over a year and this error crops up after passing all checks
R 4.4.1
RStudio 2024.09.0+375 "Cranberry Hibiscus" Release (c8fc7aee6dc218d5687553f9041c6b1e5ea268ff, 2024-09-16) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.09.0+375 Chrome/124.0.6367.243 Electron/30.4.0 Safari/537.36, Quarto 1.5.57

Good to hear that I am not the only one. But so far, no guidance on how to solve the problem, which does seem to be something on the RStudio IDE side. So far it has not interfered with successful R package builds. Doug

1 Like

Hi @martinrd3d and @johnmackintosh,

Thank you for reporting the error.

I'd like to test if this is an issue in RStudio, or in Quarto, so we can start a more thorough diagnosis.

Do you get the same error if you run the R CMD Check command outside of RStudio - on the command line for instance? Please check if Quarto is on the PATH as well - we want to be comparing like with like.

If the issue also occurs outside of RStudio, when Quarto is available on the PATH, then we will check with the Quarto team.

If this issue does not occur outside of RStudio, then I will ask you to open a support ticket.

Thanks
Lachlan (Posit Support)

Got it thanks, and will check that out tomorrow.

Quarto is not on my PATH - I don't have quarto installed as a standalone application, other than what is bundled with RStudio.
I won't be able to install it as a separate application as it is not permitted to download install or exe files.
I've run R CMD Check in the terminal using VS Code, it ran successfully with no issues/errors.

Lachlan,

Thanks for the guidance on this.

The problem does not occur when I run R CMD Check at the command line, and quarto
is on my PATH as: C:\Users\marti\AppData\Local\Programs\Quarto\bin.

But the problem persists when I run Check in RStudio.

When I go to the "open a support ticket" link is says "Pro Products Only", and I don't have any such product.
Can I still open a support ticket???

Thanks,
Doug

Hi @martinrd3d unfortunately support is only for our professional products.

I will ask our open source team to take a look at reproducing this issue.

It looks like quarto is being called incorrectly during the check process. Try reinstalling Quarto separately (quarto install) and ensure RStudio detects it properly. Also, check your R environment variables—manually setting TMPDIR might help. If the issue persists, try running Sys.which("quarto") in R to verify the installation path.

I've reproduced this and opened an issue. Error when running R CMD CHECK via "Check" button in Build pane (Windows-specific) · Issue #15805 · rstudio/rstudio · GitHub.

Gary,

That is really great news.
Many thanks.

Doug

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.