Description Usage Arguments Examples
This function performs a complete BENMMI analysis following the
settings provided in filename
.
1 2 3 |
filename |
name of the JSON file defining all analysis steps. |
tmpdir |
directory to store temporary files (for debugging only) |
browse |
load resulting report in a browser? |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # This example illustrates a typical use case of the BENMMI-package.
# Note: execution may take several minutes.
# See the package vignette for more advanced examples and details.
if (interactive()) {
# Create a work directory (in this example, a temporary
# directory, but in real use cases a persistent directory
# will obviously be more useful).
my_dir <- tempfile("benmmi-example")
dir.create(my_dir)
# Populate this directory with simple use cases
# (see the package-vignette for details).
# Most users will probably use one of these use cases as a
# template for their own study.
BENMMIdir(my_dir)
# Run BENMMI given the settings in "settings-S-D-lin.json". This file
# relates to one of the predefined use cases.
my_settings_file <- file.path(my_dir, "settings-S-D-lin.json")
benmmi(my_settings_file, browse = FALSE)
# The output (HTML-report and data-files) is stored in 'my_dir'
# and described in the package-vignette and resulting HTML-report itself.
# It is also possible to directly view the generated
# HTML-report by setting the browse-argument of the benmmi-function to TRUE.
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.