I am preparing some slides using Rmarkdown (ioslides_presentation) and I was wondering if it is possible to force a slide break within a chunk of code.
I saw some similar questions for pdf, but I cannot make those solutions work in the case of HTML slides.
Thanks!
~1.5 years later, I came here looking for an answer to the same question. For future people in the same situation:
I managed to solve it with
knitr::asis_output("\n\n---\n\n")
at the position were I wanted to force a new slide.
Related
I am trying to use the excellent Officer package to produce a set of slides with some automated analyses. In the last slide I would like to include a list of sites and links.
For example "RStudio: https://rstudio.com/"
Is there a way of doing this with officer? I see that it is possible to use ph_hyperlink but cannot figure out how to concatenate with unlinked text. An alternative could be flextable but not ideal.
Appreciate any help thanks.
Found a solution using ph_add_text and the href option.
Tonight I started programming a makeshift webpage thats not really a webpage. I downloaded Notepad++, opened it and started writing HTML code. I am making a table of information that has (at the moment) 5 columns, and there will be a lot more rows but let's say I have 4 for now.
The first part of my question is how do I go about sorting the information in the table? I want to be able to switch between organizing the information in the columns.
My second question is, it seems like I will need to incorporate CSS and/or Jaxascript and/or Python to get more of an animated feel to my makeshift webpage. Can I do that with notepad? Or do I need to download a second program...? How would that work?
I've been bouncing between two packages for my needs.
We make quite a few powerpoints at work, and I've been trying to automate the template, so all that's left to do is populate the template with data.
We are pretty data heavy, and the actual content changes pretty drastically, so I'm just trying to create the template to start.
I've created a master template already, which has every possible slide that I would use.
Then using either officer or reporteRs, I'm deleting/editing/creating slides based on the original template.
Basically, my master slide ppt has somewhere around 130 slides, and the real final ppt will have somewhere around 40 or 50 slides, depending on how many slides must be used.
So here's my question/issue -
If I'm using officer -
Is there a way to create a slide at a specific index? I can find this functionality in reporteRs, but not in officer.
If I'm using reporteRs -
Is there a way to delete a slide? I can find this functionality in officer, but not in reporteRs.
I only need one of these to work for my issue to be solved, I just can't find either. If both of the packages could be used simultaneously, that would work just fine but that won't quite work for me either.
Thanks in advance,
Cody
I'm currently using helpText in my ui.R file to display some static code content. However, because the output is not fixed width, the code looks like a mess. So how to display verbatim code; fixed width so it's easy to read?
I'm not sure I understand the problem, but the first solution would be renderVerbatim. If that doesn't cut it, you could look at ShinyAce, though that may be overkill for what you need; if does have nice features like syntax highlighting for R, though.
I believe this is highly related to a related Shiny question about rendering multiple lines of text at once:
Outputting multiple lines of text with renderText() in R shiny
At least, the main answer there is one way to solve this problem.
I've been using footnotes in markdown pages as mentioned in this post on DaringFireball, but I can't seem to figure out how to get them styled the way I want. Adding .footnotes {} to my style sheet allows me to style the footnote text, but I'm missing two things:
In Gruber's post, his footnote's backlink is given a style "a.footnoteBackLink," but my page simply produces "a href="link" rev="footnote". I don't know how to call this in CSS and I have no idea how I'd change it so that my markdown page outputs any differently. My backlink goes to a separate line, and I'd like to have it on the same line. Perhaps this is an issue with the markdown engine; I'm using Maruku (I think), and I could probably figure out how to change it if I knew which one I should use instead.
No matter what I put in the footnote brackets, the page outputs numbered footnotes. How can I tell it to use asterisks or other symbols? Most pages with footnotes will have only one or two, and symbols are generally correct when there are less than seven footnotes, so I'd like to do things proper.
I probably shouldn't even say this, but I've been teaching myself web development for the past couple of months and I absolutely could not have done it without SO. This is the first time I haven't found my answer here, so it's my first time asking. I love you don't get mad at me please.
There is a great variety of conversion tools out there. Each may have a different way of handling this. I found remarkable a good choice for your issue. It adds the class "footnote-item" to each footnote.
Check the live demo and inspect the HTML Output.