Check the file extension of the output file to see if it is the same as the `raster_format` or `vector_format` settings. If a raster, such as a GeoTIFF is output directly from a SAGA-GIS tool but the raster format is set to SAGA, then this might work depending on the saga version but Rsagacmd will not know how to read the file.
check_output_format(x, raster_format, vector_format)
a `parameter` object that is an output parameter of a tool.
the raster format.
the vector format.