Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First of all thanks for making this repository publicly available. This pull request fixes issues #93 and #92
The following is a reproducible example on Linux Mint 18.2
By running the previous code I received,
The error also revealed,
The output files in the temporary directory were all of type ".tif" (GTIFF driver).
The runGdal() function calls internally the sf::gdal_utils() function which takes params as input which normally should be a vector of parameters such as,
however it actually is
In the 'runGdal()' function the 'GTIFF' driver is assigned to the dataFormat variable which equals to
The checkGdalWriteDriver() function calls internally the getGdalWriteDrivers() function which in my case returns,
Therefore the nms variable,
is of type factor and rather than returning the driver as a character string (i.e. 'GTIFF') it returns the level position,
In this PR I converted the nms variable to a character string as the 'checkGdalWriteDriver()' function is called only once in the MODIS R package.