Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rmd chunk symbol #280

Merged
merged 6 commits into from
Jun 18, 2020
Merged

Conversation

renkun-ken
Copy link
Member

This PR enhances #186 by adding chunk symbols in addition to section symbols for R markdown documents.

Also requested at REditorSupport/vscode-R#363.

For the following document,

---
title: new document
---

# hello

Hello, world!

```{r}
x <- rnorm(100)
y <- rnorm(100)
m <- lm(y ~ x)

fun1 <- function(x, y) {
  x + y
}
```

```{r chunk-1}
x <- rnorm(100)
y <- rnorm(100)
m <- lm(y ~ x)

fun2 <- function(x, y) {
  x + y
}
```

```{r chunk-2, eval=TRUE}
x <- rnorm(100)
y <- rnorm(100)
m <- lm(y ~ x)

fun3 <- function(x, y) {
  x + y
}
```

```{r "chunk-3"}
x <- rnorm(100)
y <- rnorm(100)
m <- lm(y ~ x)

fun4 <- function(x, y) {
  x + y
}
```

```{r 'chunk-4', eval=TRUE}
x <- rnorm(100)
```

```{r 'chunk-5, new test', eval=TRUE}
x <- rnorm(100)
```

```{r}
x <- 1
```

we could get the following symbols:

image

@renkun-ken renkun-ken changed the title WIP: Rmd chunk symbol Rmd chunk symbol Jun 18, 2020
Copy link
Member

@randy3k randy3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@renkun-ken renkun-ken merged commit 61259eb into REditorSupport:master Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants