ajdamico / lodown

locally download and prepare publicly-available microdata
GNU General Public License v3.0
97 stars 47 forks source link

Issue with FAERS download using lodown #166

Closed AleSovera closed 10 months ago

AleSovera commented 4 years ago
install.packages("devtools" , repos = "http://cran.rstudio.com/")
library(devtools)
install_github("ajdamico/lodown" , dependencies = TRUE)

library(lodown)
lodown("faers" , output_dir = file.path( path.expand( "dir" ) , "FAERS"))

This is the code I am using. It all works for the installation portion but the actual ``lodown" command does not. I get this error:

trying URL 'https://www.fda.gov/Drugs/GuidanceComplianceRegulatoryInformation/Surveillance/AdverseDrugEffects/ucm082193.htm'
Content type 'text/html; charset=UTF-8' length 36002 bytes (35 KB)
downloaded 35 KB

Error in data.frame(year = ascii.years, quarter = ascii.quarter, fl = f.l,  : 
  arguments imply differing number of rows: 0, 1

Any advice on how to fix it?

ajdamico commented 10 months ago

hi! apologies for the long delay. i've made a couple of big updates to asdfree.com that hopefully make the website a bit better, but i've decided to stop maintaining the lodown package so probably won't fix the bug you've reported. the new asdfree does have faers data, but only for the most current quarter. thanks