Error adding images and plots in ioslides_presentation w/ Runtime: shiny on Windows

断了今生、忘了曾经 提交于 2019-12-11 07:28:45

问题


When I run the following ioslides_presentation w/ runtime: shiny at work (Windows 7 Enterprise)

---
title: "Untitled"
author: "Me"
date: "Thursday, February 05, 2015"
output: 
  ioslides_presentation:
    logo: images/rstudio-ball.png
runtime: shiny
---

## Slide with Plot

```{r, echo=FALSE}
plot(cars)
```

I get an "invalid back reference" error when attempting to include a logo or plot into the presentation . However, if I remove runtime: shiny the presentation compiles as expected, with both the logo and the plot. (See this question for more specifics on the error.)

Comparing the list of compile instructions provided by RStudio I believe the error is caused by my employer's IT restrictions. Specifically, I've noted that when runtime: shiny is removed, the logo is pulled from

--variable "logo=images\rstudio-ball.png"

but when runtime: shiny is used, the logo is instead pulled from

-- variable "logo=C:\Users\Jason\AppData\Local\Temp\RtmpKa4VJH\file385c176c9bb_files/logo.png

If I go to the folder C:\Users\Jason\AppData\Local\Temp\RtmpKa4VJH\file385c176c9bb_files the logo and any plots created in the presentation are indeed there but cannot be retrieved from this folder and included in the presentation.

Question: How can I change the default folder RStudio uses to hold images prior to compiling the finished shiny presentation?

Thanks for your help.

来源:https://stackoverflow.com/questions/28492029/error-adding-images-and-plots-in-ioslides-presentation-w-runtime-shiny-on-wind

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!