Issue with missing variableInfo attribute table when using the readNWISqw command in dataRetrieval.
Hello I was trying to use some code that access the parameter names in the variableInfo attribute table that was included in the dataframe that is returned when using readNWISqw command in the dataRetrieval package. I am using R version 4.2.1 and dataRetrieval v. 2.7.11. Just wondering if this has gone away for good or if it might just be missing due to a recent update. Appreciate any help you can provide for this. I have attached a reproducible example below if you run this you should get an error which I have tracked to there being no variableInfo table.
library(dataRetrieval)
library(tidyverse)
SEQW = readNWISqw(siteNumbers = c("04175748", "04176063", "04176617","041843678")
,parameterCd='All',tz='America/Detroit',startDate = "2021-10-01",endDate = "2023-10-01")
QW_Wide_val = SEQW %>%
select(c(site_no,startDateTime,parm_cd,remark_cd,result_va)) %>%
left_join(attr(SEQW,"siteInfo")[2:3]) %>%
left_join(attr(SEQW,"variableInfo"), by=c("parm_cd" = "parameter_cd")) %>%
rename(a=result_va,) %>%
pivot_wider(id_cols=c(site_no,station_nm,startDateTime),
names_from = parameter_nm,
values_from = c(a),
names_sort=T,
names_glue="{parameter_nm}")