I installed this package "xaringan
". Then I knited the "Ninja Presentation" provided by the “From template” in Rmarkdown
, but it failed. The I knited the "Ninja Presentation(Simplified Chinese)" provided by the “From template”, but it also failed.
The error information is as follows:
UTF-8 decoding error in Untitled.knit.md at byte offset 13 (bb).
The input must be a UTF-8 encoded text.
Error: pandoc document conversion failed with error 92
Execution halted
I made many attempts to solve this problem, but failed
1.Surely, I knited the original PPT, PDF and Html in Rmarkdown, It ran successfully. But this package "xaringan" in my win10 system is not work.
2. `xfun::session_info('rmarkdown')\*\*`
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043), RStudio 2021.9.0.351
Locale:
LC_COLLATE=Chinese (Simplified)\_China.936 LC_CTYPE=Chinese (Simplified)\_China.936
LC_MONETARY=Chinese (Simplified)\_China.936 LC_NUMERIC=C
LC_TIME=Chinese (Simplified)\_China.936
Package version:
base64enc_0.1.3 bslib_0.3.1 digest_0.6.29 evaluate_0.15 fastmap_1.1.0 fs_1.5.2 glue_1.6.2
graphics_4.1.2 grDevices_4.1.2 highr_0.9 htmltools_0.5.2 jquerylib_0.1.4 jsonlite_1.8.0 knitr_1.37
magrittr_2.0.2 methods_4.1.2 R6_2.5.1 rappdirs_0.3.3 rlang_1.0.2 rmarkdown_2.13 sass_0.4.0
stats_4.1.2 stringi_1.7.6 stringr_1.4.0 tinytex_0.37.2 tools_4.1.2 utils_4.1.2 xfun_0.30
yaml_2.3.5
Pandoc version: 2.14.0.3
3.I have successfully executed the following command, but package "xaringan
" still fails
remotes::install_github('yihui/knitr', upgrade = TRUE)
update.packages(ask = FALSE, checkBuilt = TRUE)
4.I installed a package “xaringanthemer
”,then knited the "Ninja Themed Presentation" provided by the “From template” in Rmarkdown
. It kinted successfully.But the package "xaringan
" is still not work. It's strange!
I really appreciate your help!