Description Usage Value See Also Examples
Set the absolute path of the folder in which MACRO (or MACRO In FOCUS) executable is installed. as well as the name of MACRO executable and the name of the exeparfile executable.
Regarding the path to MACRO-folder, the function
proceeds as follow: If a value is given (argument
codepath, see below), it is used to set MACRO-path in
the package-option macro_path
(see
rmlPar
), value that is then used
by other function in this package. If no value is given
(argument codepath left to NULL
), the function
will first search for a Windows Environment Variable
(System Variable) called rmacrolite_macro_path
,
and use this value if it exists, to set macro_path
in rmlPar
. See
rmacrolite-system-variables
.
Finally, if neither the argument
codepath is set, nor a System Variable called
rmacrolite_macro_path
, the function will try the
factory-default path to MACRO In FOCUS (type
getRmlPar("macro_path_default")
to find out).
The principle is the same for MACRO executable (argument
exe
, System Variable rmacrolite_macro_exe
, factory
default set in getRmlPar("macro_exe_default")
)
as well as for the exeparfile executable (argument
exeparfile
, System Variable
rmacrolite_macro_exeparfile
, factory default set in
getRmlPar("macro_exeparfile_default")
).
1 |
Invisibly returns a list
with 3 named
items: path
, exe
and exeparfile
,
set to the values found out by the function.
rmacroliteSetModelVar
and
rmacrolite-system-variables
.
1 2 3 4 5 6 7 8 9 10 11 12 | library( "rmacrolite" )
rmacroliteGetModelVar()
# $`path`
# [1] "C:\\swash\\macro"
# $exe
# [1] "Macro52Model.exe"
# $exeparfile
# [1] "exeparfile.exe"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.