-
Notifications
You must be signed in to change notification settings - Fork 128
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
Add knit task #608
base: master
Are you sure you want to change the base?
Add knit task #608
Conversation
thought as an often emacs org-mode ESS (emacs speaks statistics) user and sometime rstudio user who would love to jump to VSC when possible: "Knit to xxx" is good "Knit All" is good and should knit to all formats in YAML header, of html if none. Ctrl + Shift + K is what RStudio uses and is good unless otherwise claimed. The YAML header of an rmarkdown document can specify one of more formats to which the document is expected to be knit, but a call to knit can override. |
In RStudio IDE, the This has been described in Customize the Knit button. For example, the following calls
---
title: Bookdown Rmd
knit: "bookdown::render_book"
output: bookdown::gitbook
--- It would be ideal if the knit task could pick up the |
@krlmlr Thanks for this PR! I'm happy to review it whenever you'd like. Adding knit HTML/PDF/all variations might be worthwhile now as they should be straightforward. You're welcome to take on other features like automatically opening the knitted document but it seems like it might be easiest to merge the basic features now and add on the more involved features in subsequent PRs. |
Can I just double check what you were trying to achieve here. The current To @jooyoungseo's point it also looks like the existing knit all / Theres also quite a bit of chat here around different potential features we could implement is it worth extracting these to separate issues ? I would propose closing this PR considering its now outdated/incompatible with the current changes to |
@gowerc I believe the customizable knit (at least my suggestion) has already been addressed in the latest version, so this is somewhat outdated. |
Expand list of tasks so that documents kan be rendered in a fresh session using tasks. Reference: #59 (comment).
Open an
.Rmd
file, run the "R: Knit" task.I wonder:
rstudioapi::xxx()
call to the command line?.R
files