Python API - RMarkdown

Solved!
Jos
Level 1
Python API - RMarkdown

Hello,

Is there a way to create and edit RMarkdown reports using the python API?

Thanks.

0 Kudos
1 Solution
AlexT
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-...

Thanks

View solution in original post

3 Replies
AlexT
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-...

Thanks

Jos
Level 1
Author

Thanks, 

could you provide further detail as to how to include a library in Code Report?

0 Kudos
AlexT
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.  

0 Kudos