microdadosBrasil icon indicating copy to clipboard operation
microdadosBrasil copied to clipboard

Erro na instalação do microdadosBrasil

Open JRodrigues27 opened this issue 6 years ago • 6 comments

Olá, ao tentar executar o comando:

devtools::install_github("lucasmation/microdadosBrasil")

O R responde o seguinte:

Downloading GitHub repo lucasmation/microdadosBrasil@master from URL https://api.github.com/repos/lucasmation/microdadosBrasil/zipball/master Installing microdadosBrasil "C:/PROGRA~1/R/R-34~1.4/bin/i386/R" --no-site-file --no-environ --no-save
--no-restore --quiet CMD INSTALL
"C:/Users/FAMÍLIA/AppData/Local/Temp/RtmpEVEowO/devtools16a8155d4519/lucasmation-microdadosBrasil-bf9581a"
--library="C:/Users/FAMÍLIA/Documents/R/win-library/3.4" --install-tests

  • installing source package 'microdadosBrasil' ... Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/FAMMLIA/Documents/R/win-library/3.4/microdadosBrasil/DESCRIPTION': No such file or directory Error in file(file, if (append) "a" else "w") : não é possível abrir a conexão ERROR: installing package DESCRIPTION failed for package 'microdadosBrasil'
  • removing 'C:/Users/FAMÍLIA/Documents/R/win-library/3.4/microdadosBrasil' In R CMD INSTALL Installation failed: Command failed (1)

Como posso resolver esse erro? Obrigado!

JRodrigues27 avatar May 01 '18 23:05 JRodrigues27

Ola. Poderia nos passar as informações do seu sistema operacional, versões do R, etc?

Em ter, 1 de mai de 2018 20:37, JRodrigues27 [email protected] escreveu:

Olá, ao tentar executar o comando:

devtools::install_github("lucasmation/microdadosBrasil")

O R responde o seguinte:

Downloading GitHub repo lucasmation/microdadosBrasil@master from URL https://api.github.com/repos/lucasmation/microdadosBrasil/zipball/master Installing microdadosBrasil "C:/PROGRA1/R/R-341.4/bin/i386/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL "C:/Users/FAMÍLIA/AppData/Local/Temp/RtmpEVEowO/devtools16a8155d4519/lucasmation-microdadosBrasil-bf9581a"

--library="C:/Users/FAMÍLIA/Documents/R/win-library/3.4" --install-tests

  • installing source package 'microdadosBrasil' ... Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/FAMMLIA/Documents/R/win-library/3.4/microdadosBrasil/DESCRIPTION': No such file or directory Error in file(file, if (append) "a" else "w") : não é possível abrir a conexão ERROR: installing package DESCRIPTION failed for package 'microdadosBrasil'
  • removing 'C:/Users/FAMÍLIA/Documents/R/win-library/3.4/microdadosBrasil' In R CMD INSTALL Installation failed: Command failed (1)

Como posso resolver esse erro? Obrigado!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lucasmation/microdadosBrasil/issues/168, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXDiECXBl4XE_4z0TSuUe6iaerOOKPiks5tuPGkgaJpZM4Tuprl .

lucasmation avatar May 02 '18 01:05 lucasmation

Obrigado pela atenção, Lucas. Sou bem iniciante no R, cheguei ao sua programação por sugestão do Raphael Pereira que fez a programação "Brazilian_Census (https://github.com/rafapereirabr/Brazilian_Census)

Bem segue alguns dados:

Processador: AMD Phenon II X6 1100T 3.30GHz RAM: 8,00gb Windows 10 64bit

R - R version 3.4.4 (2018-03-15) Platform: i386-w64-mingw32/i386 (32-bit)

R Studio - Version 1.1.447

Com essas informações é possível identificar o motivo do erro? Grato pela atenção e paciência.

JRodrigues27 avatar May 03 '18 23:05 JRodrigues27

Boa noite, Lucas.

Eu também estou com problemas para instalar o pacote e não estou sabendo solucionar. Gostaria de uma orientação de como devo proceder, por gentileza.

Ao carregar os pacotes (devtools, stringi), e tentar rodar o comando devtools::install_github("lucasmation/microdadosBrasil") aparece a seguinte mensagem:

_Downloading GitHub repo lucasmation/microdadosBrasil@master These packages have more recent versions available. Which would you like to update?

1: purrr (0.3.0 -> 0.3.1) [CRAN]

Enter one or more numbers separated by spaces, or an empty line to cancel 1: √ checking for file 'C:\Users\Natália\AppData\Local\Temp\RtmpeAboNj\remotes4f345b037b3\lucasmation-microdadosBrasil-8fb846b/DESCRIPTION' ...

  • preparing 'microdadosBrasil': (1.5s) √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts (485ms)
  • checking for empty or unneeded directories Removed empty directory 'microdadosBrasil/slides'
  • building 'microdadosBrasil_0.0.0.9000.tar.gz'

Installing package into ‘C:/Users/Natália/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified)

  • installing source package 'microdadosBrasil' ... Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/Natalia/Documents/R/win-library/3.5/microdadosBrasil/DESCRIPTION': No such file or directory Error in file(file, if (append) "a" else "w") : não é possível abrir a conexão ERROR: installing package DESCRIPTION failed for package 'microdadosBrasil'
  • removing 'C:/Users/Natália/Documents/R/win-library/3.5/microdadosBrasil' In R CMD INSTALL Error in i.p(...) : (converted from warning) installation of package ‘C:/Users/NATLIA~1/AppData/Local/Temp/RtmpeAboNj/file4f347ee4419/microdadosBrasil_0.0.0.9000.tar.gz’ had non-zero exit status_

Para maiores informações, minha versão no R é 1.1.463, tenho a versão 35 do RTools baixada pelo site https://cran.r-project.org/bin/windows/Rtools/ e com memory.limit() de 3976 MB.

Windows 10 RAM instalada 4GB e sistema operacional de 64 bits.

E também já tentei atualizar a versão do pacote 'purrr' para a 0.3.1, mas não obtive sucesso. Aparece a mensagem:

_Installing package into ‘C:/Users/Natália/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified)

There is a binary version available but the source version is later: binary source needs_compilation purrr 0.3.0 0.3.1 TRUE

installing the source package ‘purrr’ trying URL 'https://cran.rstudio.com/src/contrib/purrr_0.3.1.tar.gz' Content type 'application/x-gzip' length 373669 bytes (364 KB) downloaded 364 KB

  • installing source package 'purrr' ... ** package 'purrr' successfully unpacked and MD5 sums checked Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/Natalia/Documents/R/win-library/3.5/purrr/DESCRIPTION': No such file or directory Error in file(file, if (append) "a" else "w") : não é possível abrir a conexão ERROR: installing package DESCRIPTION failed for package 'purrr'
  • removing 'C:/Users/Natália/Documents/R/win-library/3.5/purrr'
  • restoring previous 'C:/Users/Natália/Documents/R/win-library/3.5/purrr' Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) : problem copying C:\Users\Natália\Documents\R\win-library\3.5\00LOCK-purrr\purrr\libs\x64\purrr.dll to C:\Users\Natália\Documents\R\win-library\3.5\purrr\libs\x64\purrr.dll: Permission denied In R CMD INSTALL Warning in install.packages : installation of package ‘purrr’ had non-zero exit status

The downloaded source packages are in C:\Users\Natália\AppData\Local\Temp\RtmpIbzl5X\downloaded_packages_

Muito obrigada desde já pela ajuda!

Att

nattrigo avatar Mar 05 '19 22:03 nattrigo

R é 1.1.463? seu R e' muito antigo. muitos pacotes nao vao funcionar. Sugiro atualizar o R e tentar novamente

Em ter, 5 de mar de 2019 às 16:12, NatT03 [email protected] escreveu:

Boa noite, Lucas.

Eu também estou com problemas para instalar o pacote e não estou sabendo solucionar. Gostaria de uma orientação de como devo proceder, por gentileza. Ao carregar os pacotes (devtools, stringi), e tentar rodar o comando devtools::install_github("lucasmation/microdadosBrasil") aparece o seguinte:

Downloading GitHub repo lucasmation/microdadosBrasil@master These packages have more recent versions available. Which would you like to update?

1: purrr (0.3.0 -> 0.3.1) [CRAN]

Enter one or more numbers separated by spaces, or an empty line to cancel 1: √ checking for file 'C:\Users\Natália\AppData\Local\Temp\RtmpeAboNj\remotes4f345b037b3\lucasmation-microdadosBrasil-8fb846b/DESCRIPTION' ...

  • preparing 'microdadosBrasil': (1.5s) √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts (485ms)
  • checking for empty or unneeded directories Removed empty directory 'microdadosBrasil/slides'
  • building 'microdadosBrasil_0.0.0.9000.tar.gz'

Installing package into ‘C:/Users/Natália/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified)

  • installing source package 'microdadosBrasil' ... Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/Natalia/Documents/R/win-library/3.5/microdadosBrasil/DESCRIPTION': No such file or directory Error in file(file, if (append) "a" else "w") : não é possível abrir a conexão ERROR: installing package DESCRIPTION failed for package 'microdadosBrasil'
  • removing 'C:/Users/Natália/Documents/R/win-library/3.5/microdadosBrasil' In R CMD INSTALL Error in i.p(...) : (converted from warning) installation of package ‘C:/Users/NATLIA~1/AppData/Local/Temp/RtmpeAboNj/file4f347ee4419/microdadosBrasil_0.0.0.9000.tar.gz’ had non-zero exit status

Para maiores informações, minha versão no R é 1.1.463, tenho a versão 35 do RTools baixada pelo site https://cran.r-project.org/bin/windows/Rtools/ https://cran.r-project.org/bin/windows/Rtools/ e com memory.limit() de 3976 MB.

Windows 10 RAM instalada 4GB e sistema operacional de 64 bits.

E também já tentei atualizar a versão do pacote 'purrr' para a 0.3.1, mas não obtive sucesso. Aparece a mensagem:

Installing package into ‘C:/Users/Natália/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified)

There is a binary version available but the source version is later: binary source needs_compilation purrr 0.3.0 0.3.1 TRUE

installing the source package ‘purrr’ trying URL 'https://cran.rstudio.com/src/contrib/purrr_0.3.1.tar.gz' Content type 'application/x-gzip' length 373669 bytes (364 KB) downloaded 364 KB

  • installing source package 'purrr' ... ** package 'purrr' successfully unpacked and MD5 sums checked Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/Natalia/Documents/R/win-library/3.5/purrr/DESCRIPTION': No such file or directory Error in file(file, if (append) "a" else "w") : não é possível abrir a conexão ERROR: installing package DESCRIPTION failed for package 'purrr'
  • removing 'C:/Users/Natália/Documents/R/win-library/3.5/purrr'
  • restoring previous 'C:/Users/Natália/Documents/R/win-library/3.5/purrr' Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) : problem copying C:\Users\Natália\Documents\R\win-library\3.5\00LOCK-purrr\purrr\libs\x64\purrr.dll to C:\Users\Natália\Documents\R\win-library\3.5\purrr\libs\x64\purrr.dll: Permission denied In R CMD INSTALL Warning in install.packages : installation of package ‘purrr’ had non-zero exit status

The downloaded source packages are in ‘C:\Users\Natália\AppData\Local\Temp\RtmpIbzl5X\downloaded_packages’

Muito obrigada desde já pela ajuda!

Att

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lucasmation/microdadosBrasil/issues/168#issuecomment-469878897, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXDiPBDCb8I_biVhX3wC782k6A6YpYLks5vTuu3gaJpZM4Tuprl .

lucasmation avatar Mar 05 '19 22:03 lucasmation

R é 1.1.463? seu R e' muito antigo. muitos pacotes nao vao funcionar. Sugiro atualizar o R e tentar novamente Em ter, 5 de mar de 2019 às 16:12, NatT03 [email protected] escreveu: Boa noite, Lucas. Eu também estou com problemas para instalar o pacote e não estou sabendo solucionar. Gostaria de uma orientação de como devo proceder, por gentileza. Ao carregar os pacotes (devtools, stringi), e tentar rodar o comando devtools::install_github("lucasmation/microdadosBrasil") aparece o seguinte: Downloading GitHub repo @.*** These packages have more recent versions available. Which would you like to update? 1: purrr (0.3.0 -> 0.3.1) [CRAN] Enter one or more numbers separated by spaces, or an empty line to cancel 1: √ checking for file 'C:\Users\Natália\AppData\Local\Temp\RtmpeAboNj\remotes4f345b037b3\lucasmation-microdadosBrasil-8fb846b/DESCRIPTION' ... - preparing 'microdadosBrasil': (1.5s) √ checking DESCRIPTION meta-information ... - checking for LF line-endings in source and make files and shell scripts (485ms) - checking for empty or unneeded directories Removed empty directory 'microdadosBrasil/slides' - building 'microdadosBrasil_0.0.0.9000.tar.gz' Installing package into ‘C:/Users/Natália/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) - installing source package 'microdadosBrasil' ... Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/Natalia/Documents/R/win-library/3.5/microdadosBrasil/DESCRIPTION': No such file or directory Error in file(file, if (append) "a" else "w") : não é possível abrir a conexão ERROR: installing package DESCRIPTION failed for package 'microdadosBrasil' - removing 'C:/Users/Natália/Documents/R/win-library/3.5/microdadosBrasil' In R CMD INSTALL Error in i.p(...) : (converted from warning) installation of package ‘C:/Users/NATLIA~1/AppData/Local/Temp/RtmpeAboNj/file4f347ee4419/microdadosBrasil_0.0.0.9000.tar.gz’ had non-zero exit status ------------------------------ Para maiores informações, minha versão no R é 1.1.463, tenho a versão 35 do RTools baixada pelo site https://cran.r-project.org/bin/windows/Rtools/ https://cran.r-project.org/bin/windows/Rtools/ e com memory.limit() de 3976 MB. Windows 10 RAM instalada 4GB e sistema operacional de 64 bits. E também já tentei atualizar a versão do pacote 'purrr' para a 0.3.1, mas não obtive sucesso. Aparece a mensagem: Installing package into ‘C:/Users/Natália/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) There is a binary version available but the source version is later: binary source needs_compilation purrr 0.3.0 0.3.1 TRUE installing the source package ‘purrr’ trying URL 'https://cran.rstudio.com/src/contrib/purrr_0.3.1.tar.gz' Content type 'application/x-gzip' length 373669 bytes (364 KB) downloaded 364 KB - installing source package 'purrr' ... ** package 'purrr' successfully unpacked and MD5 sums checked Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/Natalia/Documents/R/win-library/3.5/purrr/DESCRIPTION': No such file or directory Error in file(file, if (append) "a" else "w") : não é possível abrir a conexão ERROR: installing package DESCRIPTION failed for package 'purrr' - removing 'C:/Users/Natália/Documents/R/win-library/3.5/purrr' - restoring previous 'C:/Users/Natália/Documents/R/win-library/3.5/purrr' Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) : problem copying C:\Users\Natália\Documents\R\win-library\3.5\00LOCK-purrr\purrr\libs\x64\purrr.dll to C:\Users\Natália\Documents\R\win-library\3.5\purrr\libs\x64\purrr.dll: Permission denied In R CMD INSTALL Warning in install.packages : installation of package ‘purrr’ had non-zero exit status The downloaded source packages are in ‘C:\Users\Natália\AppData\Local\Temp\RtmpIbzl5X\downloaded_packages’ Muito obrigada desde já pela ajuda! Att — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#168 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXDiPBDCb8I_biVhX3wC782k6A6YpYLks5vTuu3gaJpZM4Tuprl .

Oi Lucas,

ops, na verdade, minha versão do R Studio que é 1.1.463 (a mais atual). A minha versão no R é 3.5, mas acabei de atualizar para a 3.5.2. Perdão a confusão no meu comentário original.

nattrigo avatar Mar 05 '19 22:03 nattrigo

Olá Lucas,

consegui resolver o problema da instalação. Na realidade, o problema se referia ao devtools. Eu suspeitei disso quando percebi que não consegui baixar nenhum pacote via devtools::install_github.

Depois de procurar em 'issues' do pacote devtools eu descobri que o problema era o fato do meu diretório do R em C:/Users/'nome do usuário' conter caracteres ASCII (https://github.com/r-lib/devtools/issues/1787).

Eu resolvi minha questão retirando o acento do nome da usuário da pasta.

Abs

nattrigo avatar Mar 16 '19 14:03 nattrigo