Closed schloerke closed 1 year ago
Yes, we should use knit2html(..., template = FALSE)
instead of fragment.only = TRUE
now. I just adjusted the shiny example. Thanks a lot for the report!
Duplicate of #2252
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.
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
{knitr}
has some examples usingfragment.only
inknitr::knit2html()
: https://github.com/search?q=repo%3Ayihui%2Fknitr+fragment.only&type=code. (And in https://github.com/rstudio/shinycoreci/blob/d1ca18f1930cb8fafd6821d57cd0fa465467b5fa/inst/apps/020-knit-html/server.R#L22).I believe the breaking change of
markdown::mark()
was added in https://github.com/rstudio/markdown/commit/91ead1f93cfcc0e1f2163db25c4ef1d69c1e4700 which is called from{knitr}
in https://github.com/yihui/knitr/blob/58e7879abda492fc4358dab2d249a30f581f0593/R/utils-conversion.R#L180 .The reprex below does not work when
{markdown}
>= 1.6 is used.Reprex:
Please let me know how you'd like to adjust the shiny example. I'll follow your pattern in
rstudio/shinycoreci
andrstudio/shiny-examples
.Thank you!