Powerpoint manipulation - Add a slide at an index OR delete a slide - r

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

Related

Inserting a slide break within a code chunk in rmarkdown

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.

How to gain more style control over images in markdown?

I am working within GitHub to create and share a tutorial template.
The idea is to keep the text and the images in the tutorial uniform so I have been trying to look up a way to gain a bit more style control over the images.
For its simplicity, I am trying to do this in markdown, but I am having trouble figuring out to do reference styling. I could use any pointers.
Otherwise, I can do this in HTML, but I am trying to keep things simple in order to train anyone who may be creating new tutorials.
You could start a gitbook project as a markdown-based Git repository.
They propose multiple style associated to the image block.
Otherwise, you can use a static generator engine like Hugo to generate from your Markdown HTML page with the style you want, using one of their documentation theme.
Again, this is based on markdown files, which can be stored in a GitHub-hosted repository.

Simple HTML code and integrating CSS, Python, and JavaScript with the existing HTML code

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?

Simultaneously edit the same ipython notebook in two tabs

As my ipython notebooks get larger, I find myself more and more frequently wanting to quickly move between two sections. Since there is no split-window view, is there any way to edit the same notebook in two browser tabs simultaneously? Naively it seems that you have to reload the notebook in the second window after making changes in the first.
I'd also be interested in any general workflow suggestions for this, thanks!
It's not a perfect solution, but I use section headers and a floating table of contents to jump around to different sections. It's nice that it encourages me to make headings, although it's not super efficient. I use MinRK's extension to make the TOC (here).
If you want to go the TOC route, you should look at the How can I add a table of contents to an ipython notebook? question. The answers there (currently) suggest either MinRK's extension to the notebook as I use, or a simple browser extension that can generate a TOC for any webpage.

Information Dashboards in R with ggplot2

I'm looking to create a static dashboard viewable in a web browser. And I'd like to create something like what Stephen Few does in his book Information Dashboard Design. (see example at bottom)
Ggplot2: Shouldn't be any issue producing the graphs below, right?
Dashboard Layout: Is grid suitable? Or should I lay things out in html/css?
If grid can do this easily enough, do you know of any good resources for learning how to us it? I've read the manual but I'm not finding it too helpful. I've seen the LearnR blog's ggplot2 sales dashboard (it uses grid) and I'm having trouble understanding the grid and layout part of things.
dasboard sample http://img251.imageshack.us/img251/1029/fewciodashboard800.png
See http://learnr.wordpress.com/2009/04/09/ggplot2-sales-dashboard/ for an example with code.
I think your html/css-direction might be a really smart move.
It might be easier to get an awesome layout using using Open Office draw and just link to the images, checking off the link box when insterting them for the first time. Open Office supports export to pdf making it usefull for reporting.
Even if it was straight forward to programaticly create a stunning document layout in R, I'm not sure it would be worth the time and effort.
Regards
I would suggest also having a look at the brew package, as in this example on the learnr blog.
A few years later, there are options available for dashboards and layouts with R.
For making grids in R, ggplot2's facet_wrap and facet_grid are excellent.
Shiny allows you to make web apps and dashboards with R. Shiny handles the HTML, CSS, and JavaScript for you. It's on CRAN.
To use ggplot2 to make an interactive Shiny dashboard with d3.js, you can connect to Plotly's ggplot2 figure converter. Here is a tutorial with code examples. Your published apps let you zoom, toggle, filter, pan, and see data on the hover, e.g.:
Disclaimer: I'm on the Plotly team.

Resources