vaga / hugo-theme-m10c

A minimalistic (m10c) blog theme for Hugo
https://themes.gohugo.io/hugo-theme-m10c/
MIT License
471 stars 294 forks source link

R Markdown with plots #24

Closed ogansser closed 5 years ago

ogansser commented 5 years ago

Hello, if I move an R markdown with plots on the server, the index file in the post folder will not be checked off. This is the case with .Rmd or .Rmarkdown.

With New Post markdown it works, but without plots.

e.g. with the following plot (default for R Markdown)


title: R Markdown author: Oliver Gansser date: '2019-05-11' slug: r-markdown categories: [] tags: []

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:

summary(cars)

Including Plots

You can also embed plots, for example:

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.

vaga commented 5 years ago

I never used R Studio or R Markdown. Your problem seems to be related to Hugo or R Studio.

ogansser commented 5 years ago

folder in public looks good an all plots are there, bunt index file does not work.

vaga commented 5 years ago

Where is the generated file? Can you check the path of your generated file in HTML file?