Skip to content

Commit

Permalink
Refactored classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Aug 7, 2024
1 parent 7b30b60 commit a13fcc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/r2pmml.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ r2pmml = function(x, file, converter = NULL, converter_classpath = NULL, verbose

java_dir = file.path(pkg.r2pmml, "java")

jar_files = list.files(path = java_dir, pattern = "*.jar", full.names = TRUE)
jar_files = readLines(file.path(java_dir, "classpath.txt"), encoding = "UTF-8", warn = FALSE)

jar_files = sapply(jar_files, function(x){
return(file.path(java_dir, x))
})

return(paste(jar_files, collapse = .Platform$path.sep))
}
Expand Down

0 comments on commit a13fcc5

Please sign in to comment.