@@ -155,7 +155,7 @@ setup.Model <- function(model, edit.script=FALSE) {
155
155
attr(node ," command" ) <- normalizePath(script )
156
156
cplugin = file.path(FUNZ_HOME ," plugins" ," calc" ,paste0(model ," .cplugin.jar" ))
157
157
if (file.exists(cplugin ))
158
- attr(node ," cplugin" ) <- normalizePath(cplugin )
158
+ attr(node ," cplugin" ) <- paste0( " file:/ " , normalizePath(cplugin ) )
159
159
}
160
160
if (isTRUE(node == " [ comment ]" )) {
161
161
node <- NA
@@ -169,7 +169,7 @@ setup.Model <- function(model, edit.script=FALSE) {
169
169
attr(node ," command" ) <- normalizePath(script )
170
170
cplugin = file.path(FUNZ_HOME ," plugins" ," calc" ,paste0(model ," .cplugin.jar" ))
171
171
if (file.exists(cplugin ))
172
- attr(node ," cplugin" ) <- normalizePath(cplugin )
172
+ attr(node ," cplugin" ) <- paste0( " file:/ " , normalizePath(cplugin ) )
173
173
}
174
174
calculator.xml $ CALCULATOR [[i + 1 ]] <- node
175
175
names(calculator.xml $ CALCULATOR )[[i + 1 ]] <- " CODE"
@@ -183,6 +183,18 @@ setup.Model <- function(model, edit.script=FALSE) {
183
183
184
184
}
185
185
186
+ # ' Setup calculators in calculator.xml file.
187
+ # '
188
+ # ' @export
189
+ # ' @examples
190
+ # ' \dontrun{
191
+ # ' setup.Calculator()
192
+ # ' }
193
+ setup.Calculator <- function () {
194
+ message(paste0(" The calculator.xml file is now opened in the editor: " ,file.path(FUNZ_HOME ," calculator.xml" )))
195
+ utils :: file.edit(file.path(FUNZ_HOME ," calculator.xml" ))
196
+ }
197
+
186
198
# ' Install Funz model plugin from central GitHub repository.
187
199
# '
188
200
# ' @param model model to install.
@@ -241,7 +253,7 @@ install.Model <- function(model,force=F, edit.script=FALSE) {
241
253
# ' @examples
242
254
# ' installed.Designs()
243
255
installed.Designs <- function () {
244
- .env $ .jclassFunz $ getDesignList()
256
+ Funz ::: .env $ .jclassFunz $ getDesignList()
245
257
}
246
258
247
259
# ' List available designs from Funz GitHub repository
0 commit comments