error in r : incomplete final line found on 'remote-run-env-def.json'

Tina_liaddana
Tina_liaddana Registered Posts: 9
edited July 16 in Using Dataiku

Hello,

I got in error with my r code and I wonder if it comes from my code or Dataiku.

[11:12:26] [INFO] [dku.utils]  - [1] "********** R code failed **********"
[11:12:26] [INFO] [dku.utils]  - [1] "Error evaluating R code: subscript out of bounds"
[11:12:26] [INFO] [dku.utils]  - Warning messages:
[11:12:26] [INFO] [dku.utils]  - 1: In readLines(content, maxNumLines) :
[11:12:26] [INFO] [dku.utils]  -   incomplete final line found on 'remote-run-env-def.json'

I know that the "susbscript out of bounds" refers to a try to access to an index/object that doesnt exist, but it's not the case for me here (I checked it)

Here is the job diagnosis

Thank you in advance,

Answers

  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,215 Dataiker

    Hi @Tina_liaddana
    ,

    "subscript out of bounds" can indicated that you are trying to access an element of a vector, list, or data frame that does not existt. You will need to debug your code further to understand where this is coming from.

    For example check

    list_output$results and list_output$results[[1]]$data are not empty and that they contain the expected number of elements.

    Hope that helps

Setup Info
    Tags
      Help me…