Skip to contents

Gets or sets the local directory where pre-trained ONNX models are stored. Defaults to the standard R user data directory: tools::R_user_dir("pliman", which = "data")/models.

Usage

pliman_model_dir(dir = NULL)

Arguments

dir

Optional character string specifying a custom directory path. If provided, creates the directory if it does not exist.

Value

A character string with the normalized absolute path to the model directory.

Examples

pliman_model_dir()
#> [1] "/home/runner/.local/share/R/pliman/models"