vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

Preivew button use smart knit

Open Yunuuuu opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. I use following yaml header in my Rmd file:

---
title: "vignette"
output: 
  bookdown::html_vignette2:
    fig_caption: true
    number_sections: true
    global_numbering: true
vignette: >
  %\VignetteIndexEntry{vignette}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
knit: (function(input, ...) {
    rmarkdown::render(
      input,
      knit_root_dir = dirname(input),
      intermediates_dir = dirname(input)
    )
  })
---

image

when we use a custom knit function in the yaml header like above, the knit button will work well but the preview will stop with error since I set intermediates_dir in the yaml header knit function image

Describe the solution you'd like Preview buttom do the same of smart knit button

Yunuuuu avatar Apr 20 '23 08:04 Yunuuuu

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Apr 20 '24 01:04 github-actions[bot]