-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Empty chunks can not be knitted when caching is enabled #918
Comments
Thanks. Just fixed it. Please install the development versions of markdown and knitr: devtools::install_github(c('rstudio/markdown', 'yihui/knitr')) |
yihui
added a commit
to yihui/formatR
that referenced
this issue
Dec 18, 2014
jsonn
pushed a commit
to jsonn/pkgsrc
that referenced
this issue
Apr 17, 2016
Upstream changes: CHANGES IN formatR VERSION 1.3 NEW FEATURES o `tidy_source()` can deal with multibyte characters that cannot represented in the system native encoding now (on Windows) o `usage()` works for functions obtained from `::` or `:::` now, e.g. `usage(formatR::tidy_source)` CHANGES IN formatR VERSION 1.2 MAJOR CHANGES o the minimal required R version is 3.0.2 now CHANGES IN formatR VERSION 1.1 NEW FEATURES o added a new argument `output` to usage() BUG FIXES o fixed yihui/knitr#918: when code is NULL, parse() will hang (with a question mark waiting for input)
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
knit2html
seems to be blocked and runs forever.This may look like a very artificial use-case but it occurs for me frequently when
knitr::spin
ing R-scripts: Wheneverspin()
encounters an R comment wrapped by 2 markdown lines, it creates an empty chunk. E.g.However, I think
spin
is working correctly here by ignoring the comment and trimming away empty lines within the chunk.knit2html
should be more robust and process empty chunks even if caching is enabled. It does so if caching is disabled.I'm using R v3.1 with knitr v1.8
The text was updated successfully, but these errors were encountered: