Closed schuetzpaul closed 1 year ago
If you are on Windows, please try the following workaround. It tells the read_rpt()
function how characters are encoded in the file:
rpt_file <- swmmr::read_rpt("/00_template.rpt", locale = readr::locale(encoding = "WINDOWS-1252"))
Does that work for you?
Yes, works perfectly, thanks!
swmmr::read_rpt() is not capable of reading/loading the rpt.file when an exponent is included. In my example this is the case when a storage unit is included in the model:
rpt_file <- swmmr::read_rpt("/00_template.rpt")
In R, the following Error appears:
Error in sub(re, "", x, perl = TRUE) : input string 212 is invalid UTF-8