Use get_model_path() to retrieve the prediction model path, which should be an RDS file.

get_api_file()

get_model_path(name, path = read_secret("api.modelpath"))

read_model(path)

Arguments

name

(file)name of the model

path

folder of where the models are stored