Skip to content

Instantly share code, notes, and snippets.

@zeehio
Last active July 17, 2020 16:23
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 zeehio/597e248d079fa383b8b41d984402e5e0 to your computer and use it in GitHub Desktop.
Save zeehio/597e248d079fa383b8b41d984402e5e0 to your computer and use it in GitHub Desktop.
Reproduce Rstudio diagnostics spurious warnings
---
title: "Untitled"
author: "test"
date: "17/7/2020"
output: html_document
---
```{r}
xy <- tibble::tibble(
y = c(1, 2, 3, 4, 5, 6),
x = 1:6
)
```
```{r}
1+2
```
```{r}
xy$z <- 2
xy$z[c(1,2,3)] <- 1
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment