cruncher: Run the 'JWSACruncher'

View source: R/Cruncher.R

cruncherR Documentation

Run the 'JWSACruncher'

Description

Function to run the 'JWSACruncher' on a workspace from a parameter file.

Usage

cruncher(
  workspace,
  cruncher_bin_directory = getOption("cruncher_bin_directory"),
  param_file_path,
  log_file = NULL
)

Arguments

workspace

Path to the workspace. By default a dialog box opens to choose the workspace.

cruncher_bin_directory

Path to the "bin" directory of the 'JWSACruncher'. By default the value of the option "cruncher_bin_directory" is used.

param_file_path

Path to the parameter file of the 'JWSACruncher'. By default a .params file is search in the save directory of the workspace.

log_file

Name of the log file of 'JWSACruncher'. By default the log isn't exported.

Value

The path to the workspace.

See Also

Around the 'JWSACruncher': cruncher_and_param(), update_workspace(). To create the parameter file: create_param_file() and list2param_file().

Examples

## Not run: 
dir = tempdir()
# First create a parameter file
# here a file parameters.param is created in the directory dir
# with default parameters of 'JWSACruncher' v2
list2param_file(dir, default_param_file(v3 = FALSE))
# If the option "cruncher_bin_directory" is correctly defined:
cruncher("workspace.xml",
          param_file_path = file.path(dir, "parameters.param"))

## End(Not run)


rjwsacruncher documentation built on Oct. 5, 2023, 5:09 p.m.