R: "Error: 1: input does not match UTF-8, specify the encoding! Byte: 0xC9 0x74 0x61 0x74"

Using the gmapsdistance package, I tried to run a simple line of code:

results=gmapsdistance("Chicago+IL","New+York+City+NY","walking","myapicode") 

I get the following error:

 Error: 1: Input is not proper UTF-8, indicate encoding ! Bytes: 0xC9 0x74 0x61 0x74 

Please tell me what I'm doing wrong or call me in the direction to help solve my problem.

+5
source share
1 answer

thank you for message. I support the gmapsdistance package. I received a couple of emails with this error for Windows users. I fixed it and sent it to CRAN again. If it is not already included in CRAN, you can install the latest version from the github website:

 # install.packages("devtools") devtools::install_github("rodazuero/gmapsdistance") 

Please let me know if the problem persists.

+7
source

Source: https://habr.com/ru/post/1242237/


All Articles