CRAN version is out of date and needs fixing
issue #17 was closed almost 2 years ago and yet the CRAN version still remains out of date. It would be ideal if the CRAN version could be updated or at least this issue left open so it is easy for CRAN users to discover what is going on. Thanks.
> nhanes_data_files()
Downloading NHANES data file list to C:\Users\rbaer\AppData\Local\Temp\RtmpGOA0qa\filefcd86d175ef
trying URL 'https://wwwn.cdc.gov/Nchs/Nhanes/Search/DataPage.aspx?Component=demographics'
Content type 'text/html; charset=utf-8' length 387513 bytes (378 KB)
downloaded 378 KB
Error in dat[[2]] : subscript out of bounds
> nhanes_data_files(components = "laboratory")
The response to this closed issue was: Could it it be possible that you are running the version of RNHANES that is on cran? The cran version is not up to date. Can you please uninstall RNHANES, then re-install from github and try again:
library(devtools) #install_github("silentspringinstitute/RNHANES")
(Asking because files <- nhanes_data_files() is not pulling an error on my machine. )
Sure, we'll leave it open. We do plan to resubmit to CRAN at some point, but for now please use the GitHub version. The version number for GitHub and CRAN are also now different, which hopefully also helps with identifying the issue.