{"id":14067695,"url":"https://github.com/RLesur/klippy","last_synced_at":"2025-07-30T02:31:09.038Z","repository":{"id":78263104,"uuid":"105067962","full_name":"RLesur/klippy","owner":"RLesur","description":"Copy to Clipboard Buttons for RMarkdown HTML Documents","archived":false,"fork":false,"pushed_at":"2022-10-06T13:42:49.000Z","size":1543,"stargazers_count":59,"open_issues_count":13,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T04:13:05.075Z","etag":null,"topics":["clipboard-buttons","knitr","r","rmarkdown"],"latest_commit_sha":null,"homepage":"https://rlesur.github.io/klippy/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RLesur.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-09-27T20:49:25.000Z","updated_at":"2025-05-13T07:09:59.000Z","dependencies_parsed_at":"2023-03-12T03:54:39.529Z","dependency_job_id":null,"html_url":"https://github.com/RLesur/klippy","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/RLesur/klippy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RLesur%2Fklippy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RLesur%2Fklippy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RLesur%2Fklippy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RLesur%2Fklippy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RLesur","download_url":"https://codeload.github.com/RLesur/klippy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RLesur%2Fklippy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267798625,"owners_count":24145727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clipboard-buttons","knitr","r","rmarkdown"],"created_at":"2024-08-13T07:05:43.793Z","updated_at":"2025-07-30T02:31:08.687Z","avatar_url":"https://github.com/RLesur.png","language":"R","readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n\n```{r setup, include=FALSE}\nknitr::opts_chunk$set(echo = TRUE)\n```\n\n# klippy\u003cbr /\u003eCopy to Clipboard Buttons for R Markdown HTML Documents\u003ca href=\"https://rlesur.github.io/klippy\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"138.5\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![Travis build status](https://travis-ci.org/RLesur/klippy.svg?branch=master)](https://travis-ci.org/RLesur/klippy)\n\u003c!-- badges: end --\u003e\n\n## Overview\n\n**klippy** enhances R Markdown HTML documents with **\"copy to clipboard\" buttons** as shown below:\n\n![](man/figures/klippy.png)\n\n## Installation\n\n`klippy` is not available from CRAN, but you can install the development version from GitHub with:\n\n```{r, eval = FALSE}\n# install.packages(\"remotes\")\nremotes::install_github(\"rlesur/klippy\")\n```\n\n## Motivation\n\nAs an intensive reader of R Markdown books and documents (thanks to `knitr`), I selected on my screen dozens of R code blocks then press `Ctrl+C`...  \nThis package is a very small, but I hope helpful add-in for R Markdown to improve the reader experience.\n\n## Usage\n\nAdd the following chunk anywhere in your `Rmd` file:\n\n````markdown\n`r ''````{r klippy, echo=FALSE, include=TRUE}\nklippy::klippy()\n```\n````\n\n## Browser Support\n\n**klippy** uses [clipboard.js](https://clipboardjs.com/). Tooltips are rendered with [Primer Tooltips](https://primer.style/) CSS.  \nGlue code is in Vanilla JS.  \nFor supported browsers, see [`clipboard.js` documentation](https://clipboardjs.com/#browser-support).\n\n## Bugs/Feature requests\n\nIf you have any, [let me know](https://github.com/RLesur/klippy/issues). Thanks!\n\n## Related project\n\nTo use `clipboard.js` in Shiny, see **rclipboard** ([CRAN](https://cran.r-project.org/package=rclipboard), [GitHub](https://github.com/sbihorel/rclipboard)).\n\n## Credits\n\nThe following libraries are distributed with `klippy`:     \n\n**clipboard.js** (version: 1.7.1) (c) Zeno Rocha \u003chi@zenorocha.com\u003e  \nMIT license: \u003chttps://zenorocha.mit-license.org/\u003e  \nWebsite: \u003chttps://clipboardjs.com/\u003e  \nGitHub: \u003chttps://github.com/zenorocha/clipboard.js/\u003e\n\n**Primer Tooltips** (version: 1.4.0) (c) GitHub, Inc.  \nMIT license: \u003chttps://github.com/primer/primer-css/blob/v9.5.0/modules/primer-tooltips/LICENSE\u003e  \nWebsite: \u003chttps://primer.style/\u003e  \n\nThe clipboard icon `clippy.svg` is part of:  \n**GitHub Octicons** (version: 6.0.1) (c) GitHub, Inc.  \nMIT license: \u003chttps://github.com/primer/octicons/blob/v6.0.1/LICENSE\u003e  \nWebsite: \u003chttps://octicons.github.com/\u003e\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRLesur%2Fklippy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRLesur%2Fklippy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRLesur%2Fklippy/lists"}