Skip to content

Commit

Permalink
fix file:// path
Browse files Browse the repository at this point in the history
  • Loading branch information
richetyann committed Oct 31, 2023
1 parent a380c53 commit b36de4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ setup.Model <- function(model, edit.script=FALSE) {
attr(node,"command") <- normalizePath(script)
cplugin = file.path(FUNZ_HOME,"plugins","calc",paste0(model,".cplugin.jar"))
if (file.exists(cplugin))
attr(node,"cplugin") <- paste0("file:/",normalizePath(cplugin))
attr(node,"cplugin") <- paste0("file://",normalizePath(cplugin))
}
if (isTRUE(node == "[ comment ]")) {
node <- NA
Expand All @@ -171,7 +171,7 @@ setup.Model <- function(model, edit.script=FALSE) {
attr(node,"command") <- normalizePath(script)
cplugin = file.path(FUNZ_HOME,"plugins","calc",paste0(model,".cplugin.jar"))
if (file.exists(cplugin))
attr(node,"cplugin") <- paste0("file:/",normalizePath(cplugin))
attr(node,"cplugin") <- paste0("file://",normalizePath(cplugin))
}
calculator.xml$CALCULATOR[[i+1]] <- node
names(calculator.xml$CALCULATOR)[[i+1]] <- "CODE"
Expand Down

0 comments on commit b36de4a

Please sign in to comment.