Hi DADAY,
to create a R o python analysis in Knowage you have to edit a template XML and then create a data mining document.
At the following link you can find a simple example of XML template to produce a image or text output:
https://www.knowage-suite.com/qa/?qa=blob&qa_blobid=14221049998159966778
In the "Dataset" tag you have to insert the name of your dataframe with input data and the type (if from file or from a Knowage dataset)
In the "Scripts" tag you can edit at least one script (R or Python). In each CDATA section you can insert your R/Python code with the forecast analysis implemented. Remember to put always your output in a variable (if the you want to save the output as knowage dataset or show it as text) or in a function (if you want an image output).
In the "Commands" tag you define the different outputs and the way how to display it in the data mining document.
Regards,