floating TOC for prettydoc in Rmarkdown ask for theme

For*_*rge 5 r r-markdown

I love floating TOCs in my Rmarkdown and prettydoc package but trying to use both seems impossible.

I just want to add a floating TOC to my HTML Pretty doc. This is my working yaml header

title: "testing TOCs"
author: "Joe"
output:
  prettydoc::html_pretty:
    theme: leonids
    highlight: github
    toc: true
Run Code Online (Sandbox Code Playgroud)

Adding Floating TOC option issues an error message asking for Theme.

title: "Test floating TOC"
author: "joe"
output:
  prettydoc::html_pretty:
    theme: leonids
    highlight: github
    toc: true
    toc_float: true


Error in rmarkdown::html_document(fig_retina = fig_retina, css = NULL,  : 
  You must use a theme when specifying the 'toc_float' option
Calls: <Anonymous> ... do.call -> <Anonymous> -> <Anonymous> -> <Anonymous>
Run Code Online (Sandbox Code Playgroud)

Mar*_*ang 3

根据GitHub文档,toc_float 不适用于 Prettydoc。