-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using wru offline #99
Comments
Hello @emcghee73 There is an option for this:
If you download the files manually from the release and put them in the working directory, it won't access the internet. You'll need to download all the files manually: |
Thanks! I tried this--downloading these four files and putting them in the working directory--and I got this error message (along with the code leading up to it):
Using
That's farther than it made it before, but it's still giving the same basic error. Am I using the options command wrong? |
Can you show me the |
I fixed the character encoding problem with stri_trans_general(LastName, "Latin-ASCII") and it the rest of it ran. So I now have imputed race probabilities and I think everything is ok? That said, I am still getting the error about accessing release data, and it seems like there are a lot of unmatched names (see below). Should I be worried about that? Using In case it's helpful, here's the output from str(census20). I couldn't get Sys.locale() to work--it said "could not find function Sys.locale()." List of 1 |
I have data on a server without access to the internet, and I'm not allowed to remove the data from that server. Can I use wru without internet access? I tried pre-downloading the census data and using it in the predict_race function, like so:
census20 <- readRDS("wru_census_2020.rds") #loading the pre-downloaded census data
d <- predict_race(filter(d, !is.na(surname)), census.geo="tract", census.data=census20,
year="2020", age=F, sex=F, party="party",
names.to.use="surname, first, middle", model="fBISG")
but I got this error message:
Using
predict_race
to obtain initial race prediction priors with BISG modelProceeding with first, last, and middle name predictions...
There was an error retrieving dataCannot access release data for repo "kosukeimai/wru".
Error in gzfile(file, "rb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "rb") :
cannot open compressed file 'C:\Users\mcghee\AppData\Local\Temp\4\RtmpYpAfz4/wru-data-first_c.rds', probable reason 'No such file or directory'
If it's not downloading the census data, what is it downloading? Can I do without it, or pre-download that, too?
The text was updated successfully, but these errors were encountered: