Skip to content

Copy-code button for a code-chunk level #21

Description

@jooyoungseo

Thanks very much for making such a nice package.

I was wondering if there would be any way to add an option to get the entire code at a code-chunk level, not based on a code result unit.

For example, I need to use a workaround results = "hold" in order to put the "Copy Code" button for a code-chunk level; otherwise, the button is placed for each executed line.

---
output: html_document
---

```{r klippy, echo=FALSE, include=TRUE}
klippy::klippy()
```

## R Chunks

### Original

```{r original}
summary(airquality$Ozone)
mean(airquality$Ozone)
```

### Workaround

```{r workaround, results = "hold"}
summary(airquality$Ozone)
mean(airquality$Ozone)
```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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