1
resposta

Error in nchar(content) : invalid multibyte string, element 1

Comando Executado : reclamacao_2009_2 <- RJSONIO::fromJSON('dados/reclamacao_2009.json')

Meu sistema : R version 3.6.3 (2020-02-29) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Catalina 10.15.4

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale: [1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] jsonlite_1.6.1 RJSONIO_1.3-1.4

loaded via a namespace (and not attached): [1] compiler_3.6.3 tools_3.6.3

1 resposta

Boa noite Marcos,

Seu encodingo do sistema está conflitando.

Altera com o código abaixo e vê se funciona:

Sys.setlocale("LC_ALL","pt_BR.UTF-8")

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software