Knit to PDF报错如下:
! Package inputenc Error: Unicode character 銆?(U+3001)
(inputenc) not set up for use with LaTeX.
Try other LaTeX engines instead (e.g., xelatex) if you are using pdflatex. See https://bookdown.org/yihui/rmarkdown-cookbook/latex-unicode.html
错误: LaTeX failed to compile HW1.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See HW1.log for more info.
SessionInfo如下:
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] utf8_1.1.4 tinytex_0.26 forcats_0.5.0 stringr_1.4.0 dplyr_1.0.2
[6] purrr_0.3.4 readr_1.3.1 tidyr_1.1.2 tibble_3.0.3 tidyverse_1.3.0
[11] rmarkdown_2.3 markdown_1.1 knitr_1.30 ggplot2_3.3.2 bookdown_0.20
loaded via a namespace (and not attached):
[1] tidyselect_1.1.0 xfun_0.17 haven_2.3.1 colorspace_1.4-1 vctrs_0.3.4
[6] generics_0.0.2 htmltools_0.5.0 yaml_2.2.1 blob_1.2.1 rlang_0.4.7
[11] pillar_1.4.6 glue_1.4.2 withr_2.3.0 DBI_1.1.0 dbplyr_1.4.4
[16] modelr_0.1.8 readxl_1.3.1 lifecycle_0.2.0 munsell_0.5.0 gtable_0.3.0
[21] cellranger_1.1.0 rvest_0.3.6 evaluate_0.14 fansi_0.4.1 broom_0.7.0
[26] Rcpp_1.0.5 scales_1.1.1 backports_1.1.10 jsonlite_1.7.1 fs_1.5.0
[31] hms_0.5.3 digest_0.6.25 stringi_1.5.3 grid_4.0.2 cli_2.0.2
[36] tools_4.0.2 magrittr_1.5 crayon_1.3.4 pkgconfig_2.0.3 ellipsis_0.3.1
[41] xml2_1.3.2 reprex_0.3.0 lubridate_1.7.9 assertthat_0.2.1 httr_1.4.2
[46] rstudioapi_0.11 R6_2.4.1 compiler_4.0.2
想请问出现错误的原因以及如何定位到错误所在行以进行修改,谢谢!