[acs-r] acs.fetch hangs in v2.1 vs 2.0

Daniel Chen chend at vt.edu
Tue Sep 19 16:16:45 EDT 2017


I’ve seen the post in August that had a similar title, but the fix there
(from 2.1.0 to 2.1.1) did not seem to fix the problem I’m having with the
acs.fetch function.

The follow lines of code hang up and crash R using the latest 2.1.1 of the
acs package

arlington <- geo.make(state = "VA", county = "Arlington", tract = "*",
block.group = "*")

Population_Total <- acs.fetch(geo=arlington, endyear = 2015,
table.number="B01003")

I’ve re-installed the api.key, and also ran acs.tables.install()

The fix was to downgrade the package to v2.0

devtools::install_version("acs", version = "2.0", repos =
"http://cran.us.r-project.org")

then the above code works within seconds.

here’s the session info with v2.1.1

> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS: /usr/lib64/microsoft-r/3.4/lib64/R/lib/libRblas.so
LAPACK: /usr/lib64/microsoft-r/3.4/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] acs_2.1.1            XML_3.98-1.9         stringr_1.2.0
[4] RevoUtilsMath_10.0.0

loaded via a namespace (and not attached):
 [1] httr_1.3.1       compiler_3.4.0   R6_2.2.2         plyr_1.8.4
 [5] magrittr_1.5     RevoUtils_10.0.4 tools_3.4.0      yaml_2.1.14
 [9] Rcpp_0.12.12     stringi_1.1.5

here’s the session info with 2.0

> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS: /usr/lib64/microsoft-r/3.4/lib64/R/lib/libRblas.so
LAPACK: /usr/lib64/microsoft-r/3.4/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] acs_2.0              plyr_1.8.4           XML_3.98-1.9
[4] stringr_1.2.0        RevoUtilsMath_10.0.0

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.12     digest_0.6.12    withr_1.0.2      bitops_1.0-6
 [5] R6_2.2.2         magrittr_1.5     httr_1.3.1       stringi_1.1.5
 [9] curl_2.8.1       devtools_1.13.2  RevoUtils_10.0.4 tools_3.4.0
[13] RCurl_1.95-4.8   yaml_2.1.14      compiler_3.4.0   memoise_1.1.0

​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/acs-r/attachments/20170919/89e58f4c/attachment.html


More information about the acs-r mailing list