View source: R/DownloadPrimeCode.R
DownloadPrimeCode | R Documentation |
Training a model using a ruleset is a necessary prerequisite for being able to download the code for a ruleset.
DownloadPrimeCode(project, primeFileId, filepath)
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. |
## Not run:
projectId <- "59a5af20c80891534e3c2bde"
primeFiles <- ListPrimeFiles(projectId)
primeFile <- primeFiles[[1]]
primeFileId <- primeFile$id
file <- file.path(tempdir(), "primeCode.py")
DownloadPrimeCode(projectId, primeFileId, file)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.