r - How to render flexdashboard from the command line? -


i have flexdashboard rmd renders correctly when press knit button in rstudio. render command line naviagation bar change when use command render("myfile.rmd", flex_dashboard())

the heading of rmd file following:

--- title: "flexdashboard" output:    flexdashboard::flex_dashboard:       theme: cosmo       navbar:       - { title: "draft-for internal use only", align: right }       source_code: embed --- 

you can call render no arguments , pick of options in yaml:

render("myfile.rmd") 

altons correct using flex_dashboard() creates new format uses defaults. render format , keep settings yaml use:

render("myfile.rmd", "flex_dashboard") 

but latter form required if flex_dashboard isn't default format within rmd.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -