ENepanet | R Documentation |
runs a complete EPANET simulation
ENepanet(inpFile, rptFile, binOutFile = "")
inpFile |
name of input file |
rptFile |
name of report file (to be created) |
binOutFile |
name of optional binary output file |
Returns NULL invisibly; called for side effect
# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")
print(inp)
ENepanet( inp, "Net1.rpt")
# try opening Net1.rpt in a text editor or reading it back
# into R with the read.rpt() function in package epanetReader
myRpt <- epanetReader::read.rpt("Net1.rpt")
summary(myRpt)
# clean-up the created file
file.remove("Net1.rpt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.