Text line contains an invalid character.

I am currently writing my bachelor thesis using Rmarkdown, and whenever i make changes I knit to PDF to check how it looks etc.
It worked perfectly until I wanted to check some small changes and after that I can´t get it to knit, this is the error message I get:

output file: bbb.knit.md

! Text line contains an invalid character.
l.28 pdftitle={^^K
space{3.5in} Portfolio},

Error: Failed to compile bbb.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See bbb.log for more info.

Bare in mind that I am learning R while writing my thesis so I do have a very low level of knowledge. Does anyone have any suggestions for where the mistake might be? Line 28 has no text by the way.
I have read some suggestions about deleting the auxiliary file but I dont even know what that is or where to find it, or if it could cause me any problems deleting it.

Hope someone has some tips as wasting a lot of time on this is the last I need right now! Thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.