question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot render .rmd.

See original GitHub issue

After I hit <kbd>knit</kbd>, I got the following

rmarkdown::render("c:\\Users\\b811792\\Documents\\edu_research\\plan.rmd", e$

Nothing is rendered, I can render successfully in RStudio though.

screenshot here: image any idea?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Yinqi93commented, Sep 14, 2021

Hi @ElianHugh , thanks a lot! I just tried the latest dev release and it works smoothly!. Huge thanks to you all for bringing this amazing extension to the R community!

0reactions
bhannawacommented, Nov 23, 2021

Hi,

I was reading this issue and I think this answer from Yihue does the trick https://stackoverflow.com/questions/28432607/pandoc-version-1-12-3-or-higher-is-required-and-was-not-found-r-shiny

On Windows, this solution only worked for me when I manually ran the commands through the R terminal, but I was still unable to use the vscode-R “Knit to PDF” command. For Windows users to allow vscode to render rmarkdown files, add an environment variable to Windows so R knows where pandoc is located.

You can find the pandoc folder by running the pandoc_exec() command from an R terminal with the library(rmarkdown) loaded. Yours may differ, but mine was “C:/Program Files/RStudio/bin/pandoc”. Copy that location, then navigate to Control Panel\All Control Panel Items\User Accounts and select “Change my environment variables” from the sidebar. Add a new user variable with Variable name: RSTUDIO_PANDOC and Variable value: [PASTE IN YOUR PANDOC W/O QUOTES]. Hit OK, restart VSCode, and you should be good to go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Render Files · Issue #2030 · rstudio/rmarkdown - GitHub
I cannot render files. Whenever I try, regardless of the file type I want it to render to, I get the following message:...
Read more >
Not able to render the rmd file. - RStudio Community
The problem occurs only when I press the Knit button. Try creating a new rmarkdown file and see if that renders then we...
Read more >
blogdown::serve_site() cannot render Rmd file - Stack Overflow
I installed blogdown package directly from github and it worked fine. remotes::install_github('rstudio/blogdown').
Read more >
15 Common Problems with rmarkdown (and some solutions)
This section details some the common problems, and the solution that I have found works for me.
Read more >
rmarkdown source: R/render.R - Rdrr.io
Rmd ") #' #' # Render all formats defined in the file #' render("input. ... argument is intentionally ignored (we can't give #...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found