Skip to content

Commit

Permalink
Add libreoffice 7.4 and 7.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Apr 27, 2023
1 parent e4f3f5f commit 3dba2ba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion R/rtf_convert_format.R
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3dba2ba

Please sign in to comment.