We are calling system commands from R. There is no direct way of keeping track of the files generated.
Solution
The ideal solution will be to specify the output file names in the functions' documentation.
A quicker and practical approach is to explicitly mention the names of the files created at each step. I suggest quickly documenting this in the vignette, something like:
Problem
We are calling system commands from R. There is no direct way of keeping track of the files generated.
Solution
The ideal solution will be to specify the output file names in the functions' documentation.
A quicker and practical approach is to explicitly mention the names of the files created at each step. I suggest quickly documenting this in the vignette, something like:
https://github.com/RETURN-project/makeDataCube/blob/12d93d388ff6799b6bbb17af748c19d93f4497d0/vignettes/make_Landsat_cube.Rmd#L126-L133
https://github.com/RETURN-project/makeDataCube/blob/12d93d388ff6799b6bbb17af748c19d93f4497d0/vignettes/make_Landsat_cube.Rmd#L102-L116
Feel free to write only the
typical/path/to/filename
and ignore the{genericpath}/filename
.