Rmd渲染确定。生成html但在浏览器中显示“未找到”

时间:2017-08-23 12:24:19

标签: r rstudio knitr r-markdown rstudio-server

获得用于编写HTML报告的演示Rmarkdown文件。当通过Rstudio服务器编织时,一切都很顺利,并在弹出窗口中打开HTML。

在浏览器中打开Rmd url并且报告正常工作。在HTML中打开相同的报告,显示“未找到”消息。双重检查,HTML文件存在。权限和所有者与Rmd文件相同。

 ---
title: "testrender"
author: ""
date: "23/8/2017"
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

```{r cars}
summary(cars)
```

## Including Plots

You can also embed plots, for example:

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

Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.

[增订]

  cd reports && ls
    drwxrwxr-x  4 mick mick 4,0K ago 24 09:51 .
    drwxr-xr-x  12 mick mick 4,0K ago 18 12:42 ..
    -rw-r--r--  1 mick mick 717K ago 23 14:21 testremder.html
    -rw-r--r--  1 mick mick  832 ago 23 14:21 testremder.Rmd

0 个答案:

没有答案