Learn R Programming

datarobot (version 2.18.6)

DownloadPrimeCode: Download the code of DataRobot Prime model and save it to a file.

Description

Training a model using a ruleset is a necessary prerequisite for being able to download the code for a ruleset.

Usage

DownloadPrimeCode(project, primeFileId, filepath)

Arguments

project

character. Either (1) a character string giving the unique alphanumeric identifier for the project, or (2) a list containing the element projectId with this identifier.

primeFileId

numeric. Prime file Id (can be acquired using ListPrimeFiles function)

filepath

character. The location to save the file to.

Examples

Run this code
if (FALSE) {
  projectId <- "59a5af20c80891534e3c2bde"
  primeFiles <- ListPrimeFiles(projectId)
  primeFile <- primeFiles[[1]]
  primeFileId <- primeFile$id
  file <- file.path(tempdir(), "primeCode.py")
  DownloadPrimeCode(projectId, primeFileId, file)
}

Run the code above in your browser using DataLab