Laboratorio-de-Pedometria / febr-package

Repositório Brasileiro Livre para Dados Abertos do Solo - pacote para R
https://www.pedometria.org/software/febr/
11 stars 4 forks source link

Erro ao baixar metadado ctb0566 #7

Closed dvictori closed 4 years ago

dvictori commented 4 years ago
# usar a versão de desenvolvimento do febr
devtools::install_github(repo = "febr-team/febr-package")
#> Skipping install of 'febr' from a github remote, the SHA1 (b62a5be8) has not changed since last install.
#>   Use `force = TRUE` to force installation
meta <- febr::metadata(dataset = 'ctb0566')
#>   |                                                                              |                                                                      |   0%
#> 
#> Downloading ctb0566-metadado...
#> Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : line 64 did not have 8 elements

Created on 2020-09-24 by the reprex package (v0.3.0)

samuel-rosa commented 4 years ago

@dvictori tente a nova função genérica de descarregamento de dados readFEBR( ).

dvictori commented 4 years ago

Erro continua com a nova função:

devtools::install_github(repo = "febr-team/febr-package")
#> Skipping install of 'febr' from a github remote, the SHA1 (56e92e9f) has not changed since last install.
#>   Use `force = TRUE` to force installation
meta <- febr::metadata(dataset = 'ctb0566')
#>   |                                                                              |                                                                      |   0%
#> 
#> Downloading ctb0566-metadado...
#> Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : line 64 did not have 8 elements
meta <- febr::readFEBR('ctb0566', 'metadado')
#> Downloading...
#> https://cloud.utfpr.edu.br/index.php/s/Df6dhfzYJ1DDeso/download?path=%2Fctb0566&files=ctb0566-metadado.txt
#> Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : line 64 did not have 8 elements

Created on 2020-09-24 by the reprex package (v0.3.0)

samuel-rosa commented 4 years ago

OK. Havia um erro duas células. Já está corrigido.