Package inputenc Error: Unicode char \u8 in RStudio

后端 未结 5 1059
死守一世寂寞
死守一世寂寞 2020-12-28 16:34

In RStudio, when i go for convert my Markdown file to PDF then it gives me the error:

output file: report.knit.md

! Package inputenc Error

5条回答
  •  醉酒成梦
    2020-12-28 17:14

    I do have the same problem recently.

    I solve this problem in a straightforward way, maybe stupid you think. Obviously, the error suggests that some characters or signs in your code could not recognize properly by LaTeX.

    So, I remove the code from the R markdown part by part to find which part caused this problem. Finally, I found the part that resulted in the error in my code. Just a very short description in my code.

    ### Platform:Affymetrix A-AFFY-2-Affymetrix GeneChip Arabidopsis Genome [ATH1-121501].
    

    I remember I copy this information from webpage or other somewhere.

    So I type this part to my code by myself. It can run and generate the pdf file without any error. Now, what is the difference between the copy version and the version of my typing?

    To be clear, I show you in the below attached figure:

    .

    This is just one example I think. I want to point out that it is always problematic when you copy something from an unknown resource file into your code.

    Hope this can help you and other people who were frustrated by this problem.

提交回复
热议问题