xmarquez / democracyData

Access and manipulate most standard scholarly measures of democracy
https://xmarquez.github.io/democracyData/
84 stars 21 forks source link

generate_democracy_scores_dataset() Fails with error #16

Closed jackobailey closed 10 months ago

jackobailey commented 10 months ago

Hi,

If I run:

all_data <-
  generate_democracy_scores_dataset(
    output_format = "long",
    verbose = FALSE
  )

I get the following error:

Error in utils::unzip(zip_path, list = TRUE) : 
  zip file '/private/var/folders/r3/f83zt49x1wb91plln28x_9ch0000gq/T/RtmpuMFt2u/file33ba1a49ed74.xlsx' cannot be opened
In addition: Warning messages:
1: In download_fh(verbose = verbose, include_territories = TRUE) :
  NAs introduced by coercion
2: In download_fh(verbose = verbose, include_territories = TRUE) :
  NAs introduced by coercion

Presumably this is due to one of the source URLs breaking?

xmarquez commented 10 months ago

Hi Jack, yes - it was a broken URL for the WGI dataset. I've fixed it now and pushed an update (0.5.1). If you install the package again with remotes::install_github("xmarquez/democracyData") it should work now.