I'm using Windows 10.
My version of R is the lastest version.
I don't know what are "non-ASCII characters", but some packages that was usualy used, return this error.
I will show a example:
install.packages("nortest")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
RTools: Toolchains for building R and R packages from source on Windows
Installing package into ‘C:/Users/Usuário/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/nortest_1.0-4.zip'
Content type 'application/zip' length 38650 bytes (37 KB)
downloaded 37 KB
package ‘nortest’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Usuário\AppData\Local\Temp\Rtmpk1GqbH\downloaded_packages
Error in nchar(homeDir) : invalid multibyte string, element 1
The last string, return the error. I have no ideia how to fix it.