Retrieve latest error from phenotype query run

phenotype_get_error(phenotype)

Arguments

phenotype

phenotype structure, create or get it using create_phenotype or get_phenotype

Value

a formatted error message

Examples

if (FALSE) {
api_key <- Sys.getenv("GOR_API_KEY")
project <- Sys.getenv("GOR_PROJECT")
conn <- platform_connect(api_key, project)
phenotype <- get_phenotype(name="height", conn)
phenotype_get_error(phenotype)
}