{"id":16572279,"url":"https://github.com/jonocarroll/tremor","last_synced_at":"2025-03-05T14:20:36.129Z","repository":{"id":71014142,"uuid":"554192047","full_name":"jonocarroll/tremor","owner":"jonocarroll","description":"(Failed) Wrapping of React tremor.js","archived":false,"fork":false,"pushed_at":"2022-10-19T12:01:44.000Z","size":759,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T02:53:16.071Z","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":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonocarroll.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-10-19T12:01:35.000Z","updated_at":"2022-10-19T12:01:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"00e632e4-e0aa-4594-b4c4-826bea42a262","html_url":"https://github.com/jonocarroll/tremor","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/jonocarroll%2Ftremor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonocarroll%2Ftremor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonocarroll%2Ftremor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonocarroll%2Ftremor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonocarroll","download_url":"https://codeload.github.com/jonocarroll/tremor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242040093,"owners_count":20061977,"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-10-11T21:27:00.817Z","updated_at":"2025-03-05T14:20:36.109Z","avatar_url":"https://github.com/jonocarroll.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```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\nlibrary(tremor)\n```\n\n# tremor\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nThe goal of tremor is to wrap the [tremor.js][tremor.js] React library as a htmlWidget.\n\n## Installation\n\nYou can install the development version of tremor like so:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install.github(\"jonocarroll/tremor\")\n```\n\n## Caveats\n\nThis didn't end up working. The [example][tremorexample] listed is\n\n``` js\n\u003cCard maxWidth=\"max-w-sm\"\u003e\n    \u003cText\u003eSales\u003c/Text\u003e\n    \u003cMetric\u003e$ 71,465\u003c/Metric\u003e\n    \u003cFlex marginTop='mt-4'\u003e\n        \u003cText\u003e32% of annual target\u003c/Text\u003e\n        \u003cText\u003e$ 225,000\u003c/Text\u003e\n    \u003c/Flex\u003e\n    \u003cProgressBar percentageValue={ 32 } marginTop=\"mt-2\" /\u003e\n  \u003c/Card\u003e\n```\n![](https://github.com/tremorlabs/tremor/raw/main/images/example.png)\n\nThe following _does_ produce output, but none of the rendering seems to happen. \n\n```{r}\ntremor(Text(\"Sales\"), Metric(\"$ 71,465\"))$x$tag\n```\n\n\nThe tag appears correct...\n\n```{r}\nprint(tremor(Text(\"Sales\"), Metric(\"$ 71,465\"))$x$tag)\n```\n\nAny suggestions most welcome.\n\nThis repo contains probably too many attempts at resolving this, so it is far from minimal.\n\nI have tried:\n\n* including tailwindcss directly\n* including tailwindcss via {shiny.tailwind}\n* [updating][updatereactR] {reactR} to use ^1.8.0\n* yelling at it\n* fiddling with it\n\n[tremor.js]: https://www.tremor.so/docs/getting-started/demo-dashboard\n[tremorexample]: https://github.com/tremorlabs/tremor#example\n[updatereactR]: https://github.com/jonocarroll/reactR\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonocarroll%2Ftremor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonocarroll%2Ftremor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonocarroll%2Ftremor/lists"}