IsARam
January 14, 2019, 3:20pm
1
Hi all,
New to everything R and have Knited to HTML and published to Rpubs.
On a couple of searches I saw that some people had side menus within their Rpubs that looked like this:
However when I tried to create a side menu or a TOC it looks as follows:
In my.Rmd I have the following:
output:
html_document
toc: yes
My question is, how can I get my side menu or TOC to be displayed like the first image?
Any help would be appreciated. Thank you!
You need true
rather than yes
, as well as the identation:
output:
html_document:
toc: true
toc_float: true
1 Like
IsARam
January 14, 2019, 3:36pm
3
Thanks Martin.
Unfortunately when I republished to Rpubs, I am still not seeing a side menu:
cderv
January 14, 2019, 8:53pm
4
can you try to indent the yaml as in @martin.R example ?
yaml is very sensitive to indentation and from your screenshot it seems like html_document
is at same level as output
so the other options may not have be taken into account.
1 Like
IsARam
January 15, 2019, 12:26pm
5
Thank you very much @martin.R for the solution and @cderv for further clarification of the solution! I appreciate your time.
cderv
January 15, 2019, 4:12pm
6
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
If your question has been answered, don't forget to mark the solution!
How do I mark a solution?
Find the reply you want to mark as the solution and look for the row of small gray icons at the bottom of that reply. Click the one that looks like a box with a checkmark in it:
[image]
Hovering over the mark solution button shows the label, "Select if this reply solves the problem". If you don't see the mark solution button, try clicking the three dots button ( ••• ) to expand the full set of options.
When a solution is chosen, the icon turns green and the hover label changes to: "Unselect if this reply no longer solves the problem". Success!
[solution_reply_author]
…
system
Closed
January 22, 2019, 4:12pm
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.