-
Notifications
You must be signed in to change notification settings - Fork 333
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
Using in-body syntax for knitr chunk options creates problems for pkgdown in presence of child documents #2168
Comments
👋 @IndrajeetPatil! Thanks for the reprex and bug report. Setting a
🤔 |
Thanks for digging into this! This is strange. Why does this happen only with in-body syntax?
The child document is there and |
btw shouldn't the syntax for the in-body option be
Sadly it does not make the problem go away. |
ah no your syntax is the correct one anyway |
Btw, I used the new |
oh good to know about, thank you! |
I wonder if somehow the problem could be linked to https://github.com/yihui/knitr/blob/553b6929f0b737f02fffc20cd10a10d0268b1487/NEWS.md?plain=1#L234 I'm stuck so will leave this aside for now. |
Posting the whole trace Quitting from lines 12-13 (/tmp/RtmpXwp60l/../man/rmd-fragments/boilerplate.Rmd)
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file '/tmp/RtmpXwp60l/../man/rmd-fragments/boilerplate.Rmd': No such file or directory
Backtrace:
1. knitr::knit(..., tangle = TRUE)
2. knitr:::process_file(text, output)
5. knitr:::process_tangle.block(group)
6. base::lapply(sc_split(params$child), knit_child)
7. knitr (local) FUN(X[[i]], ...)
8. knitr::knit(..., tangle = opts_knit$get("tangle"), envir = envir)
9. xfun::read_utf8(input)
10. base::readLines(con, encoding = "UTF-8", warn = FALSE)
11. base::file(con, "r") |
I see the same error with |
Thanks for digging deeper! Do you think this is |
I think so, I'm about to open an issue, I'm 99% I found the problem 😸 |
Thanks! Closing this issue in favour of that issue then :) |
And we'll re-open if I'm wrong there 😅 |
While converting from the in-header chunk option syntax to new the in-body syntax, I have noticed that this new syntax trips up
{pkgdown}
's vignette rendering when child documents are present.For a minimal reprex, see this PR:
IndrajeetPatil/minimalReprex#3
When I try to build the website locally, I see the following backtrace:
The text was updated successfully, but these errors were encountered: