Contents are disappearing so after some time.

Hi,

I am developing a webpage using R blogdown. I have edited Index.Html under Public folder and saved it as well.But after some time, i see no connects at all. It is again showing a default page. Why is this so? please advice.

What I observed was. Son after I run blogdown::serve_site() the contents are disappearing.

See the blogdown reference.

The public folder is the output of blogdown::serve_site() is the short answer.

To see how this should work, create a new project and create a file | new document | R Markdown and replace the contents with the following

---
title: "Hello R Markdown"
author: "Frida Gomam"
date: 2015-07-23T21:13:14-05:00
categories: ["R"]
tags: ["R Markdown", "plot", "regression"]
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(collapse = 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.

You can embed an R code chunk like this:

summary(cars)
fit <- lm(dist ~ speed, data = cars)
fit

Including Plots

You can also embed plots. See Figure @ref(fig:pie) for example:

par(mar = c(0, 1, 0, 1))
pie(
  c(280, 60, 20),
  c('Sky', 'Sunny side of pyramid', 'Shady side of pyramid'),
  col = c('#0292D8', '#F7EA39', '#C4B632'),
  init.angle = -50, border = NA
)

the use the addin dropdown Serve Site

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.