4
I just downloaded the 2013 PNAD of IBGE -- and I tried to open it with the package for R that IBGE itself elaborated, the Ibgepesq. It is available as . zip archive at this address:
I downloaded it into my Working directory. And ran:
install.packages("IBGEPesq_1.0-4.zip",
repos=NULL)
library(IBGEPesq)
But then I get the following message:
Error: package ‘IBGEPesq’ was built before R 3.0.0: please re-install it
Obviously, I’ve tried to re-install it. And I’ve also run it here:
# Para atualizar os demais pacotes
update.packages(checkBuilt = TRUE, ask = FALSE)
# Por recomendação em um fórum (não entendi bem por quê)
install.packages('codetools')
And even then, the re-installation does not work. The same error returns. I am using a Windows 7 and the R session data is:
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Brazil.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.1.1
Beforehand, I appreciate the help.
Try redoing the procedure using the R x32.
– Athos
It doesn’t work either, Athos...
– RogerioJB
I was missing notice that the error you received informs that R has a q from a version earlier than 3.0.0. I think q in R 2.14.x x32 already runs. See if it goes
– Athos
@Athos, probably in an earlier version of R should run. But it is not worth doing a downgrade just to run this package. The question is precisely to make it work in a current version...
– RogerioJB
@Rogeriojb think that the Ibgepesq is gone, so I have followed the package has been discontinued. If they made the source code available, we could easily adapt it, but as far as I know it’s not available anywhere. Although today there are functions for reading that are even faster than those of Ibgepesq.
– Flavio Barros
@Flaviobarros even if tar.gz is not available, you can see the source code of the functions as well. For example, you can install the package and run
ls(getNamespace("IBGEPesq"), all.names=TRUE)
to get all available functions. From there just calledit(IBGEPesq:::nome_funcao)
to open a text editor with the function. Abs– Carlos Cinelli
So @Carlos Cinelli, try doing it with Ibgepesq, will have a surprise...initially I was going to use the sources of the package to update it to R 3.0.0 at the time. Unfortunately, there is code compiled in this package.
– Flavio Barros