BoulderCodeHub / RWDataPlyr

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

fix createSlotAggList errors #21

Closed rabutler closed 8 years ago

rabutler commented 8 years ago

If it is not a file path, then should check that it's a matrix. If it is a vector, should through different error. Currently: sla <- createSlotAggList(c('MPPE.rdf','Mead.Pool Elevation','AnnMinLTE',1020,'mpe1020')) Throws the following error which is not really appropriate.

Error in createSlotAggList(c("MPPE.rdf", "Mead.Pool Elevation", "AnnMinLTE",  : 
  MPPE.rdf does not exist.Mead.Pool Elevation does not exist.AnnMinLTE does not exist.1020 does not exist.mpe1020 does not exist.
In addition: Warning message:
In if (!file.exists(iData)) { :
  the condition has length > 1 and only the first element will be used
rabutler commented 8 years ago

Should also fix the warning in the if statement