Skip to content

Can't wrap R comments in code chunks of RMarkdown documents #48

@thombet

Description

@thombet

Hello,

Thank you for the great extension that I use intensively daily!

I am not able to rewrap R comments which are located in R code chunks whereas it works correctly in R files.

For instance, the comments in this code are correctly wrapped when I press Alt + Q in the file test.R:

# This is an example of R code with a very long comment that is easy to rewrap with this extension!
my var <- 42

But when the same code is inserted in a R code chunk of a RMarkdown document, nothing happens when Alt + Q is pressed:

Some text in my .Rmd document.

```{r r-code-chunk}
# The same example of R code with a very long comment that should be easy to rewrap with this extension!
my var <- 42
```

Unfortunately the comment above is not wrapped...

I don't have any settings specifically set for RMarkdown documents.

How can I make it work for such files?

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions