Want to Stop Rebuilding "Expensive" Parts of your Flow? Explicit Builds are the Answer!READ MORE

How to get input dataset dynamically in code recipe in R

kimchye88
Level 1
How to get input dataset dynamically in code recipe in R

r script

dkuReadDataset(???????, samplingMethod="full")

 

python script

input_dataset = dataiku.Dataset(FLOW["in"][0]["smartName"]).get_dataframe()

 

i doing this becoz i'm saving my code into "Code Sample". the same code will be execute again using different source of data.

0 Kudos
1 Reply
JordanB
Dataiker
Dataiker

Hi @kimchye88,

Thanks for writing in! So, unfortunately, there is no way to get an input dataset dynamically with R to be saved as a code sample. The most convenient option would be use the variables that are provided within an R recipe. Of course, you always can hardcode the input dataset as well.

If you have any further questions, please let us know.

Best,

Jordan

0 Kudos

Labels

?
Labels (1)
  • R

A banner prompting to get Dataiku