create_model: Create a model

Description Usage Arguments Value Examples

View source: R/model.R

Description

Creates the model in the passed project using the passed list. Fails if a model with the passed name already exists.

Usage

1
create_model(zoltar_connection, project_url, model_config)

Arguments

zoltar_connection

A 'ZoltarConnection' object as returned by new_connection

project_url

url of a project in zoltar_connection's projects. this is the project the new model will be created in

model_config

A 'list' containing a Zoltar model configuration. An example: example-model-config.json . Full documentation at https://docs.zoltardata.com/.

Value

model_url of the newly-created model

Examples

1
2
3
4
5
## Not run: 
  new_model_url <- create_model(conn, "https://www.zoltardata.com/project/9/",
                     jsonlite::read_json("example-model-config.json"))

## End(Not run)

zoltr documentation built on April 17, 2020, 1:15 a.m.