Skip to contents

This function takes a TreePPL object (the model) and/or a json object (the data) and writes them in base::tempdir as a .tppl and a .json file, respectively.

Usage

tp_write(
  model = NULL,
  model_file_name = "tmp_model_file",
  data = NULL,
  data_file_name = "tmp_data_file"
)

Arguments

model

a TreePPL model (S3).

model_file_name

a string giving a name to the temporary model file.

data

a json object with all data needed for inference (S3).

data_file_name

a string giving a name to the temporary data file.