Forum Discussion

jaryszek's avatar
jaryszek
Super User
1 year ago
Solved

Adding R code bug

hi Guys, I am getting: after implementing this R code: why ? what is happening with my bpip project file?  full error details: https://sharetext.io/75f510ff  Best, Jace...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi jaryszek,

     

    Thank you for reaching out to the Microsoft Fabric Forum Community.

     

    Please find below documentation link to get data from R script

    Run R scripts in Power BI Desktop - Power BI | Microsoft Learn

     

    Try this code:

    env_value <- Sys.getenv('COSTMGMT_CONFIG_SOURCE_PATH')
    df <- data.frame(Path = env_value)
    df

     

    If this information was helpful, kindly mark the response as accepted and give it a thumbs-up, so it may assist others as well.

     

    Best regards,
    Prasanna Kumar