-
-
Notifications
You must be signed in to change notification settings - Fork 873
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
Redirecting stdin during knitting alternatively providing knitr::is_interactive #926
Comments
You can check Line 158 in 6f69c42
But it seems to me that this is not an appropriate way to go. The better way is to define the |
Thank you! Works like a charm - sorry for missing this amazing feature. I was actually not aware that it was possible to change I'm considering extending my htmlTable to LaTeX & markdown (although the latter will naturally have a rather crude layout). Have you considered adding an |
You need to check |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I currently use the
base::interactive()
to see if I should output to the viewer or to the stdout in case the document is being knitted for myhtmlTable:::print.htmlTable
. This works great in RStudio but I noticed that withdevtools::build_vignettes
the tables in the vignette are outputted to the viewer instead of into the document. I have currently solved this by usingoptions(interactive = FALSE)
but it seems clumsy and I wonder if you would consider either:knitr::is_interactive
function that I could rely on to check if the document is being knitted.The text was updated successfully, but these errors were encountered: