Closed mcyost closed 10 months ago
hi :-) might be some time before i'm able to debug this, a pull request would be excellent if you believe you can fix the issue!
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 acs, ces, and cps-asec data, but they're only for the most current year and unfortunately doesn't include the cps basic. thanks
Love the lodown package, have used it to successfully download and parse ACS and CES data. Tried to use it to download the basic monthly CPS, and got an error. Not doing anything fancy with the code:
Here's the error:
Error in rvest::html_table(xml2::read_html(cps_ftp), fill = TRUE)[[2]] : subscript out of bounds
I looked at the installation code for the package and found that the error was generated by this line in cpsbasic.R:
cps_table <- rvest::html_table( xml2::read_html( cps_ftp ) , fill = TRUE )[[2]]
I removed the subscript [[2]] (I don't see that any functions point to cps_table...) and reinstalled the package manually. It now gives me a much longer error message:
Here's my sessionInfo():
Any chance for a fix or some troubleshooting? Thanks.