{"id":13736357,"url":"https://github.com/aoles/shinyURL","last_synced_at":"2025-05-08T12:32:42.257Z","repository":{"id":21837674,"uuid":"25160745","full_name":"aoles/shinyURL","owner":"aoles","description":":link: Save and restore the state of Shiny app's widgets by encoding them in an URL query string","archived":false,"fork":false,"pushed_at":"2016-08-08T13:25:50.000Z","size":84,"stargazers_count":81,"open_issues_count":8,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-28T12:11:24.273Z","etag":null,"topics":["bookmarks","r","shiny"],"latest_commit_sha":null,"homepage":"","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/aoles.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2014-10-13T13:56:12.000Z","updated_at":"2024-08-14T21:44:07.000Z","dependencies_parsed_at":"2022-07-25T13:02:00.629Z","dependency_job_id":null,"html_url":"https://github.com/aoles/shinyURL","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/aoles%2FshinyURL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aoles%2FshinyURL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aoles%2FshinyURL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aoles%2FshinyURL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aoles","download_url":"https://codeload.github.com/aoles/shinyURL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253068980,"owners_count":21848897,"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":["bookmarks","r","shiny"],"created_at":"2024-08-03T03:01:20.343Z","updated_at":"2025-05-08T12:32:40.238Z","avatar_url":"https://github.com/aoles.png","language":"R","readme":"[![Build Status](https://travis-ci.org/aoles/shinyURL.svg)](https://travis-ci.org/aoles/shinyURL)\n\n## Installation\n\n    # install.packages(\"devtools\")\n    devtools::install_github(\"aoles/shinyURL\")\n\n## Use\n\n1. Load the package in both **server.R** and **ui.R**.\n\n        library(\"shinyURL\")\n\n2. In **server.R**, add inside the server function a call to\n    \n        shinyURL.server()\n        \n    where `session` is the argument passed to the server function.\n        \n3. Add the shinyURL widget to **ui.R**.\n\n        shinyURL.ui()\n        \n### Restoring of tabset and navbar panels\n\nTo save and restore active tabs provide the `id` argument to the functions `tabsetPanel` or `navbarPage`.\n\n### Disable encoding of certain inputs\n\nYou can suppress certain inputs from being encoded in the query URL by using IDs with a leading dot, e.g. `.inputName`. These inputs won't be restored.\n\n## Limitations\n\n### Long URLs\n\nThe state of a shiny app gets saved by encoding its input values into an URL. To keep the URL compact and to avoid problems caused by the URL length limit (around 2000 characters) there are some points to keep in mind when developing your app.\n\n1. Avoid long names of inputs but rather use short IDs. For example, instead of\n\n        selectInput(\"firstDrug\", \"First drug\", choices = drugs)\n    \n    it's better to have\n\n        selectInput(\"d1\", \"First drug\", choices = drugs)\n\n2. Use named lists for the `choices` argument in `radioButtons` and `checkboxGroupInput`. Then only the names are displayed to the user allowing for shorter values of the control.\n\nThese points are especially relevant for apps with lots of controls.\n\n### Action buttons\n\nUnfortunately, operations performed using action buttons cannot be reliably recorded and restored. \n\n","funding_links":[],"categories":["R","Backend"],"sub_categories":["URL Routing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faoles%2FshinyURL","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faoles%2FshinyURL","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faoles%2FshinyURL/lists"}