Pearson residual and Pearson correlation are totally different concepts from different contexts.
Generally there are far more concepts in statistics than letters (even if you are prepared to use four different alphabets), so inevitably, at least if you go through a number of books and papers, the same notation will be used for different things.
The standard attitude should be that all notation needs to be defined specifically for the book or paper you are reading, and that you cannot rely on knowing what notation means unless it is explicitly defined. If you want to know what notation means, look up the definition in the text you're reading - if it's not defined, it's bad writing.
That said, particularly in statistics there are a number of conventions that are used fairly generally. $r_{xy}$ is often used for the Pearson (sample) correlation and $R^2$ is often used for the coefficient of determination (which in fact is the square of a specific correlation in standard regression), whereas I haven't seen $R$ for what you call Pearson residual that often (and even the term Pearson residual itself is not universally used). Using $R$ for the Pearson residual and $R^2$ for the coefficient of determination in the same book is actually misleading; such things should be avoided, and even $R$ and $r$ are better used for two things that are clearly related (such as random variables and their realisations), but such things happen fairly often.
Some authors think that they can use standard conventional notation without definition, but I wouldn't agree. The baseline is that things are what they are defined to be, and there is no guarantee whatsoever that notation is consistent between different texts. (Within the same text I can of course not guarantee it either, but the author should make an effort.)