Closed olivia-martin11 closed 2 years ago
Sorry to hear that you're having this problem. Would it be possible for you to email your script, along with the data extract and DDI file, to ipums+cran@umn.edu?
Might also be worth reinstalling hipread (install.packages("hipread")
in your 4.0.2 environment as ipumsr depends on it.
Sorry, I’ve tried to send this multiple times, zipped and unzipped and it didn’t work. I’m excluding the data file, but I believe I just extracted all of the voting supplement variables for all the years, geography of state, and age and race variables as well.
Hi,
Thank you for your very swift response! I did reinstall hipread in R 4.0.2 and am at 0.2.2 in that package. Weirdly enough, in R 4.0.2, I have to attach the package manually (i.e. write library(hipread) at the top of the script) for it to work, but it now works if I add that line to the top of my script. Whereas in R 3.6.1 I did not need to add this line to my script. Not sure why that’s the case.
Attached are the script, data, and ddi files. Also here’s my session info (before running library(hipread)):
R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252
attached base packages: [1] stats graphics grDevices utils datasets [6] methods base
other attached packages: [1] labelled_2.5.0 ipumsr_0.4.4 readxl_1.3.1 [4] forcats_0.5.0 stringr_1.4.0 dplyr_1.0.0 [7] purrr_0.3.4 readr_1.3.1 tidyr_1.1.0 [10] tibble_3.0.3 ggplot2_3.3.2 tidyverse_1.3.0
loaded via a namespace (and not attached): [1] Rcpp_1.0.5 cellranger_1.1.0 pillar_1.4.6 [4] compiler_4.0.2 dbplyr_1.4.4 tools_4.0.2 [7] zeallot_0.1.0 jsonlite_1.7.0 lubridate_1.7.9 [10] lifecycle_0.2.0 gtable_0.3.0 pkgconfig_2.0.3 [13] rlang_0.4.6 reprex_0.3.0 cli_2.0.2 [16] DBI_1.1.0 rstudioapi_0.11 haven_2.3.1 [19] withr_2.2.0 xml2_1.3.2 httr_1.4.1 [22] fs_1.4.2 generics_0.0.2 vctrs_0.3.1 [25] hms_0.5.3 grid_4.0.2 tidyselect_1.1.0 [28] glue_1.4.1 R6_2.4.1 fansi_0.4.1 [31] modelr_0.1.8 blob_1.2.1 magrittr_1.5 [34] backports_1.1.7 scales_1.1.1 ellipsis_0.3.1 [37] rvest_0.3.5 assertthat_0.2.1 colorspace_1.4-1 [40] stringi_1.4.6 munsell_0.5.0 broom_0.7.0 [43] crayon_1.3.4
Best, Olivia
From: Greg Freedman Ellis notifications@github.com Sent: Thursday, July 16, 2020 11:19 AM To: mnpopcenter/ipumsr ipumsr@noreply.github.com Cc: Olivia Martin oliviam@usafacts.org; Author author@noreply.github.com Subject: Re: [mnpopcenter/ipumsr] Fatal Error when using R 4.0.2 (#65)
Might also be worth reinstalling hipread (install.packages("hipread") in your 4.0.2 environment as ipumsr depends on it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmnpopcenter%2Fipumsr%2Fissues%2F65%23issuecomment-659586517&data=02%7C01%7Coliviam%40usafacts.org%7Ce8a69d1ca4ef472b6ef408d829b4c647%7C59ea7bb461a04a42b2e42abe86f4c7c9%7C0%7C0%7C637305204134328974&sdata=a9D0fbvvXvLSQKPtC6DsQXJ%2Fl7ZzdAEA%2BGc4P2kB2fo%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALAGTVF5Z37UUPZVSGATB5DR35AC5ANCNFSM4O4P4T4A&data=02%7C01%7Coliviam%40usafacts.org%7Ce8a69d1ca4ef472b6ef408d829b4c647%7C59ea7bb461a04a42b2e42abe86f4c7c9%7C0%7C0%7C637305204134338937&sdata=n7ur6Fe5QwrcI7p9J0IHkw5HaxaPjpHzk6yoOOZhe68%3D&reserved=0.
Sorry you're still experiencing this issue. Glad to hear you've found a workaround, but as you say, you shouldn't have to library(hipread)
for ipumsr to work properly. If it's not working to attach those files to an email to ipums+cran@umn.edu, you could also try uploading those files somewhere (e.g. Google Drive, OneDrive, etc.) and emailing a sharing link to ipums+cran@umn.edu (please don't share the data or a link to the data here, only by email). It's difficult to debug the issue without copies of your data and DDI files. Another thing you could try is resubmit your extract request on the IPUMS website and re-download the data and DDI files, in case one of your files got corrupted somehow.
Recently switched to R 4.0.2 and tried to run a script I had written before using R 3.6.1. At the point of using the function
read_ipums_micro()
I get a fatal error from RStudio and the session is aborted. I switched back to R 3.6.1 and there was no problem.I got this error using both ipumsr 0.4.2 and after upgrading to 0.4.4.