Open bendv opened 9 years ago
This should work: 67311c7885d41aec4b16af78a2f0231539617f4f. We can add further checks (e.g. validity of file path) later, if needed.
Hey Ben, I'm not sure we should do that or at least I don't really like it inside mc.calc(). None of the raster package functions have these options and mc.calc is just a parallel version of calc(). If you find a way to do that with a small utils function which we'd systematically call before mc.calc() I'd be much happier.
If writeRaster returns an error (e.g. you referred to a character object with the filename, but with a typo), you only find out after minutes/hours of processing. A pre-check could avoid alot of frustration...