Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jashapiro
Last active March 15, 2021 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jashapiro/20ad401c9834638e4dee699e44ab7167 to your computer and use it in GitHub Desktop.
Save jashapiro/20ad401c9834638e4dee699e44ab7167 to your computer and use it in GitHub Desktop.
Test rmarkdown::render()
---
title: "Test"
output: html_notebook
---
Make some vectors
```{r}
abc <- c("a", "b", "c")
nums <- 1:3
```
Vectors of strings print twice when using `rmarkdown::render()` on this document (but as expected in RStudio)
```{r}
abc
```
This prints the same way by either method.
```{r}
print(abc)
```
Numbers print as expected.
```{r}
nums
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment