图像在.Rpres中未显示

3
在探索Rstudio演示文稿时,我遇到了一个看似简单但令人烦恼的问题,我的搜索并没有解决。简而言之,导入演示文稿中的图像不会出现,只有带有alt文本的框。在Rmarkdown文件中使用相同的导入,则图像会出现。我正在运行OSX 10.9.5和RStudio 0.98.1091。以下是代码示例:
这个.Rmd文件显示了我的图片:
---
title: "Another Try"
author: "Me"
date: "today"
output: html_document
---
This is my image.

![my image](/path/to/my/file/myimage.png)

这个.Rpres文件没有显示我的图片:

anotherTry
========================================================
author: Me
date: Today

My Image
========================================================

![my image](/path/to/my/file/myimage.png)
2个回答

2
以下内容适用于我,使用Rstudio时(在文件file.Rpres中)。
Title slide
===========
author: me
date: now

Test slide
==========

Below is a test image

![my image](testimage.png)

screen snapshot


2

看起来图片需要在演示文稿的源文件夹中

![我的图片](/path/to/my/file/myimage.png)不起作用,但是

![我的图片](myimage.png)如果文件在同一个目录中,则有效。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接