Sync PDF view to editor location not working properly

Hi, I've searched around for this issue on google and here but I couldn't find one so I'm raising a question here.
I've installed tinytex on my machine (as suggested by Rstudio) and made a sample .Rnw file to check if it is working properly. It complied pdf without any hassle, but I noticed that forward / backward sync location (SyncTex) is not working well.

To be specific, when I cmd + click on the editor, it always highlight the first line of pdf, and if I do backwards it always locates prompt to the end of the editor. What is possibly causing this issue?

I'm using Version 1.3.959 Rstudio, and compiled the pdf with knitr.

Below is the sample .Rnw file I used for testing.

\documentclass{article}

\begin{document}

dsf

sdf





asdfsdf

asdf

\end{document}