Plotting error. "Users folder" in portuguese contain multibyte, or non-ASCII, characters. How to fix it?


I recently installed RStudio in my new notebook with MSWindows 10 in portuguese.
RStudio runs well, except for plotting:

Error in gzfile(file, "wb") : não é possível abrir a conexão
Além disso: Warning message:
In gzfile(file, "wb") :
não foi possível abrir o arquivo comprimido 'D:/Usu?rios/peter/AppData/Local/Temp/RtmpuOU3t0/rs-graphics-ecd40c26-908f-4d75-ac95-5f929b16c046/c5f9b684-2467-45c7-bc4a-b2456c893870.snapshot', motivo provável 'Invalid argument'
Graphics error: Plot rendering error

A year ago Mr. Kevin Ushey (RStudio Employee) wrote that there was an issue with RStudio on Windows due to account name containing multibyte, or non-ASCII, characters (Graphics error: Plot rendering error Error in gzfile(file, "wb") :cannot open the connection).

The problem is that, in portuguese, the Users fold itself has non-ASCII characters: Users = Usuários.

Any help is appreciated.


As a workaround, you could force R to use a temporary directory in a folder containing no non-ASCII characters. For example, you (or the user) could set the Windows environment variable:


Or a similar directory the user could have access to.

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