Last active
July 17, 2020 16:23
-
-
Save zeehio/597e248d079fa383b8b41d984402e5e0 to your computer and use it in GitHub Desktop.
Reproduce Rstudio diagnostics spurious warnings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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