elegantbookdown output to pdf

i found i can not outpu with chinese character and can not use example from yihui.

tinytex::pdflatex('test.tex')
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
error: LaTeX failed to compile test.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips.

and i tach a new post in tinytex: can not output pdf

hope you can help me.
thank you