Custom RMarkdown template in Dataiku

Options
DataR11
DataR11 Registered Posts: 2

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

Answers

  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,209 Dataiker
    Options

    Hi @DataR11
    ,

    This is not possible, unfortunately.

  • DataR11
    DataR11 Registered Posts: 2
    Options

    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")

Setup Info
    Tags
      Help me…