{"id":14065996,"url":"https://github.com/deepanshu88/shinyCopy2clipboard","last_synced_at":"2025-07-29T21:34:38.010Z","repository":{"id":140127832,"uuid":"348235943","full_name":"deepanshu88/shinyCopy2clipboard","owner":"deepanshu88","description":"Copy Text to Clipboard in Shiny Apps","archived":false,"fork":false,"pushed_at":"2021-03-19T18:19:37.000Z","size":33,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-13T07:10:19.529Z","etag":null,"topics":["r","rstats","shiny"],"latest_commit_sha":null,"homepage":"https://www.listendata.com/2021/03/shinycopy2clipboard-copy-to-clipboard.html","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepanshu88.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2021-03-16T06:19:19.000Z","updated_at":"2024-08-04T16:57:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5b49b46-740e-4cc2-8635-b5604f080313","html_url":"https://github.com/deepanshu88/shinyCopy2clipboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepanshu88%2FshinyCopy2clipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepanshu88%2FshinyCopy2clipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepanshu88%2FshinyCopy2clipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepanshu88%2FshinyCopy2clipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepanshu88","download_url":"https://codeload.github.com/deepanshu88/shinyCopy2clipboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228052662,"owners_count":17862105,"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","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":["r","rstats","shiny"],"created_at":"2024-08-13T07:04:53.479Z","updated_at":"2024-12-04T05:31:13.775Z","avatar_url":"https://github.com/deepanshu88.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# shinyCopy2clipboard: Copy Text to Clipboard in shiny apps\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\n### Introduction\nIn this package we use [clipboard.js](https://clipboardjs.com/) which is a lightweight (3kb) javascript library to copy text to clipboard. Tooltip is also added separately in this package which is outside the scope of this javascript library. With this package you can fetch the value from shiny app on the client and send it to clipboard\n\n\n## Installation\n\nYou can install the released version of shinyCopy2clipboard from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"deepanshu88/listendata\")\n```\n\n## Example\n\nThis is a basic example which shows you how to solve a common problem:\n\n```{r example}\nlibrary(shiny)\nlibrary(shinyCopy2clipboard)\n\n# UI\nui \u003c- fluidPage(\n\n  # Setup\n  use_copy(),\n\n  # Text Input 1\n  textInput(\"text\", \"Enter Your Text\"),\n\n  # Copy Button 1\n  CopyButton(\n    \"copybtn\",\n    \"Copy to Clipboard\",\n    icon = icon(\"copy\"),\n    text = \"No Text Found\",\n    class = \"btn-primary\",\n    width = \"150px\"\n  )\n\n)\n\n# Server\nserver \u003c- function(input, output, session) {\n\n  observe({\n\n    req(input$copybtn)\n    CopyButtonUpdate(session,\n                     id = \"copybtn\",\n                     label = \"Copy to Clipboard\",\n                     icon = icon(\"copy\"),\n                     text = input$text\n    )\n\n  })\n\n}\n\n# Run App\nshinyApp(ui = ui, server = server)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepanshu88%2FshinyCopy2clipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepanshu88%2FshinyCopy2clipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepanshu88%2FshinyCopy2clipboard/lists"}