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

Daniel Chen chend at vt.edu
Tue Sep 19 17:54:39 EDT 2017


Still have the same problem. when I get to the acs.fetch function, it
pauses (longer than usual) and then R/Rstudio eventually crashes.

I’ve tried both options(tigris_use_cache = FALSE) and options(tigris_use_cache
= TRUE)

Not sure if it matters, but this is running on rstudio-server.

The current sessionInfo()


> 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
LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
 [6] LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C
               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
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
  magrittr_1.5     RevoUtils_10.0.4 tools_3.4.0
 [8] yaml_2.1.14      Rcpp_0.12.12     stringi_1.1.5

​

On Tue, Sep 19, 2017 at 5:01 PM, Ezra Haber Glenn <eglenn at mit.edu> wrote:

>
> Can you remove RCurl and then try it all?
>
> On Tue, 19 Sep 2017 16:16:45 -0400, Daniel Chen wrote:
> >
> > [1  <multipart/alternative (7bit)>]
> > [1.1  <text/plain; UTF-8 (quoted-printable)>]
> > [1.2  <text/html; UTF-8 (quoted-printable)>]
> > 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
> >
> > ​
> >
> >
> > [2  <text/plain; us-ascii (7bit)>]
> > _______________________________________________
> > acs-r mailing list
> > acs-r at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/acs-r
>
> --
> Ezra Haber Glenn, AICP
> Department of Urban Studies and Planning
> Massachusetts Institute of Technology
> 77 Massachusetts Ave., Room 7-346
> Cambridge, MA 02139
> eglenn at mit.edu
> http://dusp.mit.edu/faculty/ezra-glenn
> 617.253.2024 (w)
> 617.721.7131 (c)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/acs-r/attachments/20170919/93842221/attachment.html


More information about the acs-r mailing list