Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I ran into some problems when using VSCODE to knit RMD #1461

Open
Sgrcaivnemn opened this issue Mar 30, 2024 · 5 comments
Open

I ran into some problems when using VSCODE to knit RMD #1461

Sgrcaivnemn opened this issue Mar 30, 2024 · 5 comments
Labels
reprex needs a minimal reproducible example

Comments

@Sgrcaivnemn
Copy link

Here is my problem:
b6bc65fa47860e4bb657350b9cbd495

@cderv
Copy link
Collaborator

cderv commented Apr 2, 2024

Thanks for the report.

Unfortunately, with only this screenshot, we won't be able to do much. This is indicates that you indeed encountered an issue, but it could be anything.

You should at least look in the "R Markdown output stream" - it should be accessible in one of the panes of VS CODE (Output pane with the selector then on the right). This will give you the message.

The error could come from bookdown, rmarkdown, knitr or just one of your code cell execution, or any of your Rmd content.

So to sum up, we need more information in order for us to look into this. Please help us help you. Thank you !

@cderv cderv added the reprex needs a minimal reproducible example label Apr 2, 2024
@svix424
Copy link

svix424 commented Oct 31, 2024

i'm having the same problem and get the following error:

Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).

Execution halted

[VSC-R] HW 8.Rmd process exited with exit code 1
[VSC-R] terminating R process

any suggestions welcome!

@cderv
Copy link
Collaborator

cderv commented Nov 4, 2024

Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).

Do you have Pandoc installed and available on your system PATH ?

This message tells you that required version is not found - did you check for it ?

@svix424
Copy link

svix424 commented Nov 6, 2024

I followed these instructions and set a new system PATH to this: RSTUDIO_PANDOC = "C:/Program Files/RStudio/bin/quarto/bin/tools/".
It creates reprex.rmd files, and a .txt file that still gives me the same message: Error : pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).

@cderv
Copy link
Collaborator

cderv commented Nov 7, 2024

set a new system PATH to this: RSTUDIO_PANDOC = "C:/Program Files/RStudio/bin/quarto/bin/tools/".

What does this means ? Did you add a new environment variable ? Or added the bin path to the PATH environment variable ?

RSTUDIO_PANDOC env var should be used by R Markdown - you can check with rmarkdown::find_pandoc()
What does it return ?

Also did you restart VSCODE or your computer to be sure the env var change taken into account ?

If you have only pandoc available in RStudio through pandoc, instead of pointing to that version you could either

  • Install pandoc on your system and put in PATH env var
  • Install quarto on your system and put the bin/tools in env var
  • Using pandoc R package to manage your pandoc installation, and configure R Markdown to use it (or set in PATH env var)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reprex needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

3 participants