Custom RMarkdown template in Dataiku

DataR11
Level 1
Custom RMarkdown template in Dataiku

Would it be possible to use a custom RMarkdown template from an internal package in Dataiku?

0 Kudos
2 Replies
AlexT
Dataiker

Hi @DataR11 ,

This is not possible, unfortunately. 

0 Kudos
DataR11
Level 1
Author

thanks,

I have found a solution to do it

1: Import the package containing the Rmarkdown template into a folder

2: call the package with load_all

library(dataiku)

Packages <- dkuManagedFolderPath("nki5z2ng")

devtools::load_all(paste0(Packages,"/Template"))

 

3. create your Rmardown "test.Rmd"  using the template.

---
title: "test"
output:
Template::template_name:
self_contained: True
number_sections: False

knit: pagedown::chrome_print
---

 

4.rmarkdown::render(paste0(Packages,"/test.Rmd"),
output_dir = paste0(Packages,"/"),
output_file="test")

0 Kudos