BoulderCodeHub / RWDataPlyr

R package to read and manipulate data from RiverWareTM
3 stars 5 forks source link

Need more informative error messages in read_rwd_agg #99

Open rabutler-usbr opened 5 years ago

rabutler-usbr commented 5 years ago

Ex: If you have a long csv file, it can be hard to spot the error. Should return the row number, or print the row that gives an issue or similar.

Error: Allfileextensions should be: rdf

But can't tell which row is the issue.

rabutler-usbr commented 5 years ago

The following wrong lines are actually returning the wrong error.

MWDICS.rdf,MWD ICS.DCPActualAnnualPut,December,NA,NA,NA,mwd_dcp_put
MWDICS.rdf,MWD ICS.DCPActualAnnualTake,December,NA,NA,NA,mwd_dcp_take
MWDICS.rdf,MWD ICS,DCPAdditionalAnnualContribution,December,NA,NA,NA,mwd_add_dcp_cont
MWDICS.rdf,MWD ICS,ConvertECToDCP,December,NA,NA,NA,mwd_ec_to_dcp