{"id":19721749,"url":"https://github.com/rinterface/shinyrpg","last_synced_at":"2025-04-29T21:31:25.264Z","repository":{"id":96639143,"uuid":"338615796","full_name":"RinteRface/shinyRPG","owner":"RinteRface","description":"RPG CSS theme for Shiny","archived":false,"fork":false,"pushed_at":"2021-07-13T20:00:54.000Z","size":127,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T19:51:09.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RinteRface.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-02-13T16:22:57.000Z","updated_at":"2024-09-15T11:05:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ff2f251-a180-43e4-9bd0-f91b66519be0","html_url":"https://github.com/RinteRface/shinyRPG","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/RinteRface%2FshinyRPG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RinteRface%2FshinyRPG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RinteRface%2FshinyRPG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RinteRface%2FshinyRPG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RinteRface","download_url":"https://codeload.github.com/RinteRface/shinyRPG/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251585837,"owners_count":21613282,"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":[],"created_at":"2024-11-11T23:15:25.337Z","updated_at":"2025-04-29T21:31:24.385Z","avatar_url":"https://github.com/RinteRface.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# shinyRPG\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/shinyRPG)](https://CRAN.R-project.org/package=shinyRPG)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n\u003c!-- badges: end --\u003e\n\nThe goal of shinyRPG is to ...\n\n## Installation\n\nYou can install the released version of shinyRPG from Github with:\n\n``` r\nremotes::install_github(\"RinteRface/shinyRPG\")\n```\n\n## Example\n\nThis is a basic example which shows the template:\n\n``` r\nlibrary(shiny)\nlibrary(shinyRPG)\n\nui \u003c- rpgPage(\n  rpgContainer(\n    rpgProgress(\"progress\", 10),\n    rpgButton(\"update\", \"Update slider\"),\n    rpgSlider(\"slider\", \"Slider\", 0, 100, 50, golden = TRUE),\n    rpgCheckbox(\"checkbox\", \"Check me!\"),\n    rpgRadio(\"radio\", \"Choose one\", names(mtcars)),\n    rpgSelect(\"variable\", \"Variable:\",\n              c(\"Cylinders\" = \"cyl\",\n                \"Transmission\" = \"am\",\n                \"Gears\" = \"gear\")),\n    rpgSelect(\"variable2\", \"Variable 2:\",\n              c(\"Cylinders\" = \"cyl\",\n                \"Transmission\" = \"am\",\n                \"Gears\" = \"gear\"), size = 3),\n    style = \"framed-golden\"\n  )\n)\n\nserver \u003c- function(input, output, session) {\n  observe({\n    print(\n      list(\n        button = input$update,\n        slider = input$slider,\n        checkbox = input$checkbox,\n        select = input$variable,\n        list = input$variable2\n      )\n    )\n  })\n  \n  observeEvent({\n    req(input$update \u003e 0)\n    input$update\n  }, {\n    updateRpgSlider(session, \"slider\", 50)\n    updateRpgProgress(\"progress\", color = \"green\")\n    updateRpgSelect(session, inputId = \"variable2\", selected = \"gear\")\n  })\n  \n  observeEvent(input$slider, {\n    updateRpgProgress(\"progress\", value = input$slider)\n  })\n\n  observeEvent(c(input$checkbox, input$radio), {\n    if (input$checkbox) showNotification(\"Hello\")\n    showNotification(input$radio)\n  })\n}\n\nshinyApp(ui, server)\n```\n\n__Note__: valid JS instances are checkbox, draggable, progress, radio, dropdown, list and slider.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinterface%2Fshinyrpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinterface%2Fshinyrpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinterface%2Fshinyrpg/lists"}