is_model: Determine if the 'model' is indeed a 'model'

View source: R/is_model.R

is_modelR Documentation

Determine if the model is indeed a model

Description

Determine if the model is indeed a model

Usage

is_model(model, verbose = FALSE)

Arguments

model

the GCAE architecture, as checked by check_model. Use read_model_file to read a GCAE architecture from file. Use save_model to save the model to a JSON file. Use plot_model to plot the model. Use save_model_plot to save a plot of the model to file.

verbose

the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid.

Value

TRUE if the model is indeed a model

Author(s)

Richèl J.C. Bilderbeek

Examples

# TRUE
is_model(model = create_test_model())

# FALSE
is_model(model = "nonsense")
is_model(model = "nonsense", verbose = TRUE)

richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.