I'm getting warning message with is.na(r), I don't know why, but if I deleted is.na(r) then it's working fine without any warnings.
r version : 4.2.1
translation_get_translation <- function(type, technical){
req(input$selected_export_language)
map <- translation_map()
r <- map [ which( map$TranslationType == type & map$TechnicalName == technical ) , ]
if (is.na(r) || is.null(r) || nrow(r) < 1){
log_debug("No translation map found ", type," " , technical)
technical
} else {
if (nrow(r)>1){
log_debug("Multiple translation map found ", type," ", technical)
}
r$Label[1]
}
}