{"id":20455023,"url":"https://github.com/jumpingrivers/pier","last_synced_at":"2025-10-31T00:36:33.897Z","repository":{"id":75642476,"uuid":"107565942","full_name":"jumpingrivers/pieR","owner":"jumpingrivers","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-28T10:46:44.000Z","size":262,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-15T23:25:23.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jumpingrivers.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":"2017-10-19T15:38:49.000Z","updated_at":"2018-12-08T21:17:30.000Z","dependencies_parsed_at":"2023-06-07T05:30:34.642Z","dependency_job_id":null,"html_url":"https://github.com/jumpingrivers/pieR","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/jumpingrivers%2FpieR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2FpieR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2FpieR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2FpieR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jumpingrivers","download_url":"https://codeload.github.com/jumpingrivers/pieR/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242005820,"owners_count":20056434,"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-15T11:17:45.107Z","updated_at":"2025-10-31T00:36:33.806Z","avatar_url":"https://github.com/jumpingrivers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput:\n  md_document:\n    variant: markdown_github\neditor_options: \n  chunk_output_type: console\n---\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/jumpingrivers/pieR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jumpingrivers/pieR/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# pieR\n\nA utility package for creating d3 pie charts based on the RStudio js tutorials.\n\n## Installation\n\nYou can install **pieR** from GitHub with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"jumpingrivers/pieR\")\n```\n\n## Example\n\nA couple of basic examples of the `pie()` function:\n\n```{r example1, results=\"hide\", message=FALSE}\nlibrary(\"pieR\")\npie(1:5)\npie(c(5, 5, 5))\n```\n\n# A basic Shiny example \n\n```{r, eval = TRUE}\n## Only run this in interactive R sessions\nif(interactive()) {\n  library(\"shiny\")\n  ui = fluidPage(\n    titlePanel(\"Pie Example!\"),\n    sidebarLayout(\n      sidebarPanel(\n        sliderInput(\"obs\", \n                    \"Generate n random Numbers\", \n                    min = 2, \n                    max = 10, \n                    value = 5)\n      ),\n      mainPanel(\n        pieOutput(\"piePlot\"),\n        textOutput(\"randNo\")\n      )\n    )\n  )\n  # Define the server code\n  server = function(input, output) {\n    numbers = reactive(round(runif(input$obs, 1, 10),0))\n    output$piePlot = renderPie({\n      pie(numbers())\n    })\n    output$randNo = renderText({\n      numbers()\n    })\n  }\n  shinyApp(ui = ui, server = server)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumpingrivers%2Fpier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjumpingrivers%2Fpier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumpingrivers%2Fpier/lists"}