Skip to content

error when engine is breedbase and brapi version is v2 #19

@fg-sempre

Description

@fg-sempre

when downloading multiple trials in a folder

 get_trial_data()

Error in rbind(deparse.level, ...) : 
  numbers of columns of arguments do not match

The code below seems to solve the problem.

qbms.R

if (
    qbms_globals$config$engine == "breedbase" &&
      qbms_globals$config$brapi_ver == "v1"
  ) {
    study_header <- study_data[1, ]
    study_data <- study_data[-1, ]
  } else if (qbms_globals$config$brapi_ver == "v1") {
    study_header <- c(
      study_result$headerRow,
      study_result$observationVariableNames
    )
  } else if (qbms_globals$config$brapi_ver == "v2") {
    study_header <- c(
      study_result$headerRow,
      study_result$observationVariables$observationVariableName
    )
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions