I'm still learning R and mostly been focused on the tidyverse libary.
I'm creating a rmarkdown document that has box with text:
I need help on how to implement word wrap.
Here's my YAML setup:
Related
I am using Rmarkdown (notebook) in Rstudio to generate tables and charts, using about 10 code chunks. The R code is running fine. When I knitr to MS-Word (.docx), the results look pretty good, but in some cases I would like to force a page break to improve the appearance, and sometimes to prevent a table from being split across pages (I am using 'flextable' package to create the tables). I tried the ##### page break approach, which involves creating a Word template file and changing the Header 5 properties, but that did not work. I also notice the following post from 7 years ago, which uses a simple Lua filter to allow page breaks in Word. I admit I have not tried that yet. The question is, is there an updated / easier way to control page breaks when outputting to Word in RMarkdown ? It's such a basic part of document control I am surprised how complicated the solutions are (at least based on the older posts).
Pandoc markdown page break
Any suggestions are welcome.
I remember there was a time that when you type # in R markdown it will immediately transfer to the heading output. Also, when you type **bold** it will immediately show the text in bold. But now I can't find a way to do this.
Is it possible to show the markdown output in the .rmd document? Thanks!
This behaviour will depend on the text editor you use. Some Markdown editors have a "What You See Is What You Get" (or WYSIWYG) philosophy that will do exactly what you describe. You can find examples of WYSIWYG Markdown editors online, I personally have only tried Typora. But as far as I can tell, none of them seem to support Rmarkdown (perhaps someone has made an Rstudio add-in?).
On the other hand, in the early days of knitr, it used to support Lyx (I don't know if it still does), which is maybe closer to what you have in mind? See this post for an example: https://yihui.org/knitr/demo/lyx/
Does anyone know how to display text output into an R markdown file? I haven't seen any tutorial cover what I want to do, which is take input from a shiny app and use that for a for loop in my code which will create a text document, which is what I want to display. I don't want to write all of the code I have because it is quite long and isn't necessary, but can anybody at least point me in the write direction?
I am a Sublime's newbie and I am trying to use the cool Find/replace tab.
Is there a way (package or shortcut) to have a scroll-down menu that shows items I previously searched/replaced? This feature is available for example in Notepad++. This would be particularly helpful hen working with regex's variations.
I searched and found question about running a series of search-replaces in a row but what I need is just the possibility to go back to items I looked for in the past.
Thanks a lot
In Sublime 3, this feature is available. Below is a screenshot (underneath the window you see on the right is a drop-down arrow). Are you using Sublime 2 or 3? Sublime Text 3 can be downloaded here.
is there an open source library or web service that i can feed with text and get back the overall impression ? by impression i mean the emotional state, what the person who wrote the text happy,sad..etc
It is not that simple - writer could feel several emotions at-once and besides writer emotions could vary with different parts of text ...
In general you can start to dig the problem from these articles:
Emotions from text: machine learning for text-based emotion prediction
Identifying Expressions of Emotion in Text
Context Based Emotion Detection from Text Input
hth!