Description Usage Arguments Details See Also
Get or set default parameters for the package. Notice changes done to the parameter values are reset everytime the R session is closed and the package is reloaded.
1 2 3 4 5 |
par |
Three possible cases:
|
reset |
Single logical. If TRUE, all the parameters will be set to their default value. Values are reset before any change to the parameter values, as listed below. |
encoding |
Vector of three character strings. (1) |
maxPathLength |
Single integer value. Maximum length of a path for the MACRO command line modules: |
fileNameTemplate |
List of character strings, with two items, |
idWidth |
Single integer value. Width of the formatted simulation ID in MACRO In FOCUS output files (bin-files). Also used for formatting the par-files generated by this package. |
tz |
See |
errorKeywords |
Vector of character strings. Keywords that should be interpreted as an error or problem in MACRO command message output. |
handleErrors |
Single character string. If set to |
balanceFile |
Single of character string. Name of the file containing output water and solute balance, as internally calculated by MACRO. |
macro_path |
Single character string. Path to the folder where the MACRO
or MACRO In FOCUS executable is installed. See
|
macro_exe |
Single character string. Name of the the MACRO
or MACRO In FOCUS executable to be used to run simulations,
in the folder defined by |
macro_exeparfile |
Single character string. Name of the the "exeparfile"
executable that converts par-files into MACRO input files
(indump.tmp), in the folder defined by |
macro_path_default |
Single character string. Default value for |
macro_exe_default |
Single character string. Default value for |
macro_exeparfile_default |
Single character string. Default value for |
digits_parfile_k |
Single integer values. Number of significant digits to be used when rounding degradation rates (DEMAL, DEGMAS, DEGMIL, DEGMIS) in the par-file when modifying degradation parameters. |
digits_dt50_depth_f |
Single integer value. Number of digits to be used when rounding the factor describing DT50 decrease with depth when calculating the values from the par-file or writing new degradation values in a par-file. |
id_range |
Vector of 2 integer values. Min and max value allowed for MACRO RUNID. |
log_width |
Single integer value. Width of the log output messages (maximum number of characters). Notice that some messages may get larger. |
The function has 3 possible, non-exclusive behaviours:
If
reset=TRUE
, resetting the parameters to their initial values, as
defined in this function.
(Silently) returning the actual value of the
package parameters. If par=NULL
, all the values are returned. If
par
is a vector of parameter names, their value will be returned.
Setting-up the value of some parameters, passing a list of parameter
value to par
OR setting some of the parameters listed above.
Notice that when reset=TRUE
and some new parameter values are
provided, the parameters are first reset, and then the new parameter values
are set. If par
is a list, parameters are set first according to
values in par
, and then according to values in the parameters listed
below. This combination is not recommended, but nonetheless possible.
The actual value of the parameters is stored in (and can be retrieved from)
the environment rspPars
. The default value of the parameters are
stored in the environment rspPars
. Do not use them directly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.