Skip to content

Allow knit Rmd to integrate with RMarkdown's site paradigm  #615

@zkamvar

Description

@zkamvar

Is your feature request related to a problem? Please describe.

If I am working in an RMarkdown, blogdown, or distill site in RStudio, I am able to use the Knit button/ ctrl+shift+k to render an individual page in the context of the site. If I'm working in VScode, this renders a page that is outside of the context of the full site (no headers, footers, or styling).

Describe the solution you'd like

Have ctrl+shift+k mimic the process of RStudio to detect if there is a file called index.R?md and see if it has a site: yaml item with a generator (documentation: https://bookdown.org/yihui/rmarkdown/rmarkdown-site.html). If this condition is true, then it would run rmarkdown::render_site("<FILE>")

Describe alternatives you've considered

My current alternative is using RStudio

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions