rstudio / bookdown

Authoring Books and Technical Documents with R Markdown

Home Page:https://pkgs.rstudio.com/bookdown/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html output error with echo=FALSE option

sumin5784 opened this issue · comments

Hi,

I'm having the same issue addressed in one of the closed issue [Margin/div bug when rendering gitbook #733]
I re-installed bookdown as addressed in that previous issue but still have the same issue.

Below is code-chunk set-up
knitr::opts_chunk$set(eval = TRUE, echo = FALSE, warning = FALSE, message = FALSE, fig.align = "center", dev = c("png", "pdf"), dpi = 1200, cache = TRUE)

And this is what I have in my output
image

Another issue is the search button is not working. Even if I click search button, search box is not appearing on top of TOC. My old books, which I rendered about couple of years ago is working properly, not any html book I recently rendered is not working.

Thank you for the help in advance!

Here's session info in case you need it
attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] flextable_0.9.2 gridExtra_2.3 magrittr_2.0.3 formattable_0.2.1
[5] kableExtra_1.3.4 knitr_1.44 dplyr_1.1.2 survival_3.4-0
[9] gtsummary_1.7.0

loaded via a namespace (and not attached):
[1] httr_1.4.5 sass_0.4.5 tidyr_1.3.0
[4] jsonlite_1.8.4 viridisLite_0.4.1 splines_4.1.3
[7] bslib_0.5.1 shiny_1.7.4 askpass_1.1
[10] fontLiberation_0.1.0 yaml_2.3.7 gdtools_0.3.3
[13] pillar_1.9.0 lattice_0.20-45 glue_1.6.2
[16] uuid_1.1-0 digest_0.6.31 promises_1.2.0.1
[19] rvest_1.0.3 colorspace_2.1-0 htmltools_0.5.5
[22] httpuv_1.6.9 Matrix_1.5-4 gfonts_0.2.0
[25] fontBitstreamVera_0.1.1 pkgconfig_2.0.3 httpcode_0.3.0
[28] bookdown_0.35.2 purrr_1.0.1 xtable_1.8-4
[31] scales_1.2.1 webshot_0.5.4 svglite_2.1.1
[34] later_1.3.0 officer_0.6.2 fontquiver_0.2.1
[37] tibble_3.2.1 openssl_2.0.6 generics_0.1.3
[40] ellipsis_0.3.2 withr_2.5.0 cachem_1.0.7
[43] cli_3.6.1 crayon_1.5.2 mime_0.12
[46] evaluate_0.22 fansi_1.0.4 broom.helpers_1.13.0
[49] xml2_1.3.3 textshaping_0.3.6 tools_4.1.3
[52] data.table_1.14.8 lifecycle_1.0.3 stringr_1.5.0
[55] munsell_0.5.0 zip_2.3.0 compiler_4.1.3
[58] jquerylib_0.1.4 systemfonts_1.0.4 rlang_1.1.0
[61] grid_4.1.3 gt_0.9.0 rstudioapi_0.14
[64] htmlwidgets_1.6.2 rmarkdown_2.25 gtable_0.3.3
[67] codetools_0.2-18 curl_5.0.0 R6_2.5.1
[70] fastmap_1.1.1 utf8_1.2.3 ragg_1.2.5
[73] stringi_1.7.12 crul_1.4.0 Rcpp_1.0.10
[76] vctrs_0.6.1 tidyselect_1.2.0 xfun_0.39

Below is code-chunk set-up
knitr::opts_chunk$set(eval = TRUE, echo = FALSE, warning = FALSE, message = FALSE, fig.align = "center", dev = c("png", "pdf"), dpi = 1200, cache = TRUE)

And this is what I have in my output

Where is the setup chunk define ?

What is the source content for your "About this Book" chapter ?

Which rendering approach are you using ? https://bookdown.org/yihui/bookdown/new-session.html

Another issue is the search button is not working. Even if I click search button, search box is not appearing on top of TOC. My old books, which I rendered about couple of years ago is working properly, not any html book I recently rendered is not working.

This is another topic, and this means another issue please. Thank you. You can share link of online books not working for you. thanks