Skip to content

Instantly share code, notes, and snippets.

@joranE
Created March 13, 2017 22:37
Show Gist options
  • Save joranE/35327ba6f10ce240cef9fd5f37006258 to your computer and use it in GitHub Desktop.
Save joranE/35327ba6f10ce240cef9fd5f37006258 to your computer and use it in GitHub Desktop.
Inline Rmd numeric formatting...?
---
title: "Test"
author: "Test"
date: "March 13, 2017"
output: pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
val <- 260123.123
```
This is a value: `r val`
@joranE
Copy link
Author

joranE commented Mar 13, 2017

Knitting this (the raw version) in Rstudio gives me:

! Missing $ inserted.

$
l.136 This is a value: 2.6012312\times

pandoc: Error producing PDF
Error: pandoc document conversion failed with error 43
Execution halted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment