diff --git a/R/rtf_convert_format.R b/R/rtf_convert_format.R index 308ecbb..44baa09 100644 --- a/R/rtf_convert_format.R +++ b/R/rtf_convert_format.R @@ -41,7 +41,15 @@ rtf_convert_format <- function(input, # Check libreoffice dependency if (.Platform$OS.type == "unix") { - sys_cmd <- c("libreoffice7.3", "libreoffice7.2", "libreoffice7.1", "libreoffice") + sys_cmd <- c( + paste0( + "libreoffice", + c( + "7.5", "7.4", "7.3", "7.2", "7.1" + ) + ), + "libreoffice" + ) sys_loc <- which(Sys.which(sys_cmd) != "")[1] if (is.na(sys_loc)) stop("libreoffice is required") sys_cmd <- sys_cmd[sys_loc]