-
Notifications
You must be signed in to change notification settings - Fork 32
Description
I am trying to impute race for a number of local government candidates, but every time I try to run the predict_race function, I get the following error:
Predicting race for 2010
Proceeding with last name predictions...
There was an error retrieving data: Cannot 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 '/var/folders/51/s9_7p3n97kxc265my2fp9wq80000gn/T//Rtmplgy5o0/wru-data-first_c.rds', probable reason 'No such file or directory'
I have tried manually downloading the files and setting the working directory to my current one: options(wru_data_wd = getwd())
but that just causes the error to change to the following:
Predicting race for 2010
Proceeding with last name predictions...
There was an error retrieving data: Cannot 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 'NA/wru-data-first_c.rds', probable reason 'No such file or directory'
where it's erroring on where the file is located.
This happens even though I've specified the surname.only = TRUE argument, which I think should mean that it shouldn't be trying to find the wru-data-first_c.rds file in the first place since it isn't using it.
Any advice or information you might have on this would be greatly appreciated.