Error: invalid multibyte character in parser at line 1 and stop
<p>Described as title, R stopped with the following error message:</p>

<blockquote>
  <p>Error: invalid multibyte character in parser at line 1</p>
</blockquote>

<p>Usually, the error message emerges intermittently during R usage and it's hard to pin point the cause. Sometimes it pops up when I turn to R (using Rstudio) and the process stops.</p>

<p>I have tried reinstalling R, Rstudio, JDK maybe 5 times... to no avail.</p>

<p><a href="https://i.stack.imgur.com/6zzXx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6zzXx.png" alt="enter image description here"></a></p>