Skip to content

Bug in makeNiceTif #13

@bwcompton

Description

@bwcompton

In some circumstances, variable a at line 188 is undefined. This happens when usesf is FALSE and the destination file isn't created.

if (usesf) {
    opts <- character(0)
    ...
    do.call(sf::gdal_utils, args = args)
}
else {
    ...
    a <- system(command = command, intern = TRUE, wait = TRUE)
}
if (!file.exists(destination)) 
    stop("Output file", destination, "was not created. System call returned: ", 
        a)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions