ncss-tech / rosettaPTF

R frontend for the Python rosetta-soil module. Uses {reticulate} to wrap the Rosetta pedotransfer functions and provide unsaturated soil hydraulic parameter estimates from basic soil properties.
https://ncss-tech.github.io/rosettaPTF/
GNU General Public License v2.0
8 stars 1 forks source link

`run_rosetta()` `overwrite` argument does not work if prior run failed #11

Closed brownag closed 8 months ago

brownag commented 8 months ago

Reported by @ColbyBrungard

If prior call to run_rosetta() fails, with file specified, and then is re-run with overwrite=TRUE, the following error occurs:

Error: [writeStart] cannot overwrite existing file

Need to handle possibility of error and generally be sure file handles are closed.