Depending on your version of Word, this might be somewhere else. Mark the text you wrote, click on the arrow to the left of the Styles box (see the red “circle” in the figure) and choose Create a style.For instance you can write Text for mystyle1. It doesn’t matter what you write, it’s just meant so you can create and apply new styles to it. Create a new word document (either through RMarkdown -> Word, or just open Word and create a new empty one).I tried to dig out the 2 year old project (it turns out I ended up not needing it for that project and haven’t used it since).Īs I was trying to contemplate how to best share the example with Dean, I figured I’ll write a brief blog post, which might benefit others, too. Then recently, Dean Attali (yes, the guy who does a lot of cool Shiny stuff ✨) posted a reply asking for an example. I asked online and got some help from JJ Allaire (yes, the guy who started RStudio □). Specifically, I wanted to find a way to format certain parts of the R Markdown document in a specific style. I found some good information in this RStudio article, but it didn’t quite address everything I was looking for. A good while back (around 2 years as of this writing), I needed the feature to turn an R Markdown document into a Word document (that’s easy) and to apply custom styles to specific parts of the Word document (that was trickier).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |