Skip to content

Commit

Permalink
next fix otb
Browse files Browse the repository at this point in the history
  • Loading branch information
gisma committed Apr 30, 2024
1 parent 6dfb4fa commit aced405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/otbControls.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ searchOTBW <- function(DL = "default",

#raw_OTB <- try(system(paste0("cmd.exe"," /c dir /B /S ",DL,"\\","otbcli.bat"),intern=TRUE))
if (identical(raw_OTB, character(0))) raw_OTB <- "File not found"
if (grepl(raw_OTB,pattern = "File not found") | grepl(raw_OTB,pattern = "Datei nicht gefunden")) {
if (grepl(raw_OTB[1],pattern = "File not found") | grepl(raw_OTB[1],pattern = "Datei nicht gefunden")) {

class(raw_OTB) <- c("try-error", class(raw_OTB))
}
Expand Down

0 comments on commit aced405

Please sign in to comment.