r-markdown

How to include auto-numbered lists in github_document?

大憨熊 提交于 2020-01-06 05:45:05
问题 The below code works for auto-numbering lists in plain html: --- title: "Assignment 1" output: html_document: number_sections: true --- 1. First 2. second but how can I use auto-numbering to output a github_document ? UPDATE: this works for me after updating to pandoc 2.2.3.2 and RMarkdown 1.10 not sure if there are other ways --- title: "Assignment 1" output: github_document --- #. First #. second 来源: https://stackoverflow.com/questions/51071256/how-to-include-auto-numbered-lists-in-github

Is there a “Save Page As PDF” for Shiny app?

梦想与她 提交于 2020-01-06 05:36:08
问题 So I am aware that there is RMarkdown and it is used to generated reports to be printed out in various format (pdf included). I am still very new to R Shiny and will certainly get to RMarkdown soon. However, in the mean time, I am wondering if there is a simple way to print the entire page of an app into pdf, the same way that we normally do for a typical website: 1 - Right-click anywhere on a website to get the popup menu 2 - Select Print 3 - Print As PDF I don't seem to find any discussions

R Shiny: Latex equations are not properly rendered

我与影子孤独终老i 提交于 2020-01-06 02:27:07
问题 I can't get ioslides to render latex equation. A simple example is: --- title: "Title" author: "Author" date: "Tuesday, November 03, 2015" output: ioslides_presentation runtime: shiny --- ## slide 1 $\sum_{i=1}^n X_i$ The equation is rendered as \(\sum_{i=1}^n X_i\ Note that I'm able to get the proper rendering if I create the file as RPresentation but not as ioslides. 回答1: ioslides needs to know that it has to use mathjax --- title: "Title" author: "Author" date: "Tuesday, November 03, 2015"

how to colour different Rmarkdown kable tables in different colour

≯℡__Kan透↙ 提交于 2020-01-06 01:57:45
问题 Below is the code I am using. Only problem is that both my tables are of same colour which is my second colour code (#ffff99). How can I keep the background of both tables different. <style> table { background-color:#eff8e5; } </style> ``` {r} kable(df1) ``` <style> table { background-color:#ffff99; } </style> ``` {r} kable(df2) ``` 回答1: HTML/CSS is not rendered the way you implicitly assume. Your code would work as expected if the rendering followed a procedure like: set: "tables are green"

Embed a pdf in a R Markdown file and adapt pagination

假装没事ソ 提交于 2020-01-05 12:30:32
问题 I am finishing my PhD, and I need to embed some papers (in pdf format) in somewhere in the middle of my R Markdown text. When converting the R Markdown into PDF, I would like those PDF papers to be embed in the conversion. However, I would like those PDF papers to be also numbered according to the rest of the Markdown text. How can I do it? UPDATE: New error By using \includepdf , I get this error: output file: Tesis_doctoral_-_TEXTO.knit.md ! Undefined control sequence. l.695 \includepdf

R Blogdown: insert images side by side using knitr

徘徊边缘 提交于 2020-01-05 09:14:23
问题 I am working on a personal website using blogdown. I know about the handy addin for inserting an image - it works well, but for only one image. Is there a way, using knitr::include_graphics , to insert multiple images side-by-side? I'm aware of using something like this: ![image text](path/to/image.png) ![other image text](path/to/image2.png) But this cannot adjust the size of each image, which is an important formatting option for me. Note: While poking around for a solution before I post

Several plots of large time series not displaying in R Markdown

笑着哭i 提交于 2020-01-05 08:52:19
问题 I have a large dataset of 16 independent timeseries. I would like to plot them in a 3x7 grid with the top row being each of the timeseries ending in IN and the bottom row being each of the timeseries ending in OUT. In the middle row, I will repeat each of the two timeseries ending in RN that corresponds to each IN/OUT couple. I received assistance writing the script in an earlier post, but still cannot get R Studio to output my plots. Any wisdom or guidance would be appreciated. Here are my

Bookown' bibliography multiple languages

亡梦爱人 提交于 2020-01-05 07:04:23
问题 I need to put two reference sections. References are equal, but in first section it must be in russian and in english in the second section (see png example). What shall I do to create bibliography references in multiple languages with R+Bookdown+Zotero/Juris-M? 回答1: Partial solution for LaTeX/PDF output. I started with a clone of bookdown-start In index.Rmd and _output.yml I removed the bibliography specific things In index.Rmd I defined a main font with Cyrillic characters In _output.yml I

deploy a Rmd interactive doc with Shinyapps.io

六月ゝ 毕业季﹏ 提交于 2020-01-05 04:16:24
问题 I am trying to deploy a shiny app and am running into trouble... I have an Rmd file, and am trying to publish this document first by running locally in Rstudio, then on web. My files are stored on my home user directory in a folder named Shiny. This has the files imported, my RMD, my shinyapps.io file, and my rsconnect file. title: "Sedentary Analysis" author: "Bianca Gonzalez" date: "July 26, 2016" output: html_document runtime: shiny When I run the rsconnect::deployApp('SedentaryAnalysis

RMarkdown xelatex !Missing & Inserted

不打扰是莪最后的温柔 提交于 2020-01-05 03:57:05
问题 I originally posted with issues here: Rmarkdown with xelatex I have since reinstalled, but now I'm having an entirely new issue. Using the following code (inside a .Rmd file): --- header-includes: - \usepackage{graphicx} output: pdf_document: latex_engine: xelatex --- ```{r} knitr::include_graphics("F:/Big Folder/My Folder/image.png") ``` I get the following error: ! Missing $ inserted. <inserted text> $ l.134 .../Big Folder/My Folder/image} pandoc.exe: Error producing PDF Error: pandoc