GetPrimeFile: Retrieve a specific Prime file from a DataRobot project

View source: R/PrimeFiles.R

GetPrimeFileR Documentation

Retrieve a specific Prime file from a DataRobot project

Description

This function returns information about specified Prime file from a specified project.

Usage

GetPrimeFile(project, primeFileId)

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. Unique alphanumeric identifier for the primeFile to be retrieved.

Value

List with following elements:

language

Character string. Code programming language

isValid

logical flag indicating if code passed validation

rulesetId

Integer identifier for the ruleset

parentModelId

Unique alphanumeric identifier for the parent model

projectId

Unique alphanumeric identifier for the project

id

Unique alphanumeric identifier for the Prime file

modelId

Unique alphanumeric identifier for the model

Examples

## Not run: 
  projectId <- "59a5af20c80891534e3c2bde"
  primeFiles <- ListPrimeFiles(projectId)
  primeFile <- primeFiles[[1]]
  primeFileId <- primeFile$id
  GetPrimeFile(projectId, primeFileId)

## End(Not run)

datarobot documentation built on May 29, 2024, 4:36 a.m.