Python API - RMarkdown
Hello,
Is there a way to create and edit RMarkdown reports using the python API?
Thanks.
Best Answer
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi,
There is no API for rmarkdown reports, you can leverage project libraries and edit those via Python API and include that project library in Code report.
https://doc.dataiku.com/dss/latest/R/reusing-code.html#reusing-r-code
https://developer.dataiku.com/latest/concepts-and-examples/project-libraries.html#add-a-new-file-in-the-library
Thanks
Answers
-
Thanks,
could you provide further detail as to how to include a library in Code Report?
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
You would be able to include code as such in your report
library(dataiku)
dkuSourceLibR("miscfuncs.R")
do_awesome_stuff()
Note importing via dkuSourceLibR is for R code so html/markdown would have to be handled in the code report directly.
Project libraries for RMarkdown are support since DSS 9.