{"id":14069107,"url":"https://github.com/ThinkR-open/brighter","last_synced_at":"2025-07-30T05:31:20.542Z","repository":{"id":69754236,"uuid":"147507272","full_name":"ThinkR-open/brighter","owner":"ThinkR-open","description":"A toolbox of functions for easier shiny development.","archived":true,"fork":false,"pushed_at":"2019-02-27T16:46:45.000Z","size":11,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-04T10:39:11.921Z","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/ThinkR-open.png","metadata":{"files":{"readme":"README.Rmd","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":"2018-09-05T11:27:36.000Z","updated_at":"2023-01-28T18:55:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"b191e36a-631a-46f8-8080-49b2ece0ffad","html_url":"https://github.com/ThinkR-open/brighter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThinkR-open/brighter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fbrighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fbrighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fbrighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fbrighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThinkR-open","download_url":"https://codeload.github.com/ThinkR-open/brighter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fbrighter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267815187,"owners_count":24148356,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-13T07:06:36.655Z","updated_at":"2025-07-30T05:31:20.289Z","avatar_url":"https://github.com/ThinkR-open.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, 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# brighter\n\n{brighter} is a toolbox of random functions for easier shiny development.\n\n```{r}\nlibrary(brighter)\n```\n\n\n## Installation\n\nYou can install the dev version of brighter from GitHub with:\n\n``` r\nremotes::install_github(\"Thinkr-open/brighter\")\n```\n\n## List of functions \n\n### `with_red_star`\n\nAdds a red star at the end of the text (for example for indicating mandatory fields).\n\n``` \nwith_red_star(\"Plop\")\n\u003cspan\u003ePlop\u003cspan style=\"color:red\"\u003e*\u003c/span\u003e\u003c/span\u003e\n```\n\n### `enurl`\n\nTakes an url and a text and create a link: \n\n```\nenurl(\"https://www.thinkr.fr\", \"ThinkR\")\n\u003ca href=\"https://www.thinkr.fr\"\u003eThinkR\u003c/a\u003e\n```\n\n### `rep_br`\n\nRepeat a `tags$br` n times\n\n```\nrep_br(times = 3)\n\u003cbr/\u003e \u003cbr/\u003e \u003cbr/\u003e\n```\n\n### `list_to_li` \u0026 `list_to_p`\n\nTurns an R list to an HTML list or into paragraphs. \n\n\n```\nlist_to_li(c(\"a\",\"b\"))\n\u003cli\u003ea\u003c/li\u003e\n\u003cli\u003eb\u003c/li\u003e\n```\n\nYou can add a class to each with the class parameters.\n\n```\nlist_to_p(c(\"One\",\"Two\"), class = \"pouet\")\n\u003cp class=\"pouet\"\u003eOne\u003c/p\u003e\n\u003cp class=\"pouet\"\u003eTwo\u003c/p\u003e\n```\n\n### `named_to_li`\n\nTurn a named vector into a named html list:\n\n```\npouet \u003c- c(\"One\", \"two\", \"three\")\nnames(pouet) \u003c- c(\"a\", \"b\", \"c\")\n\nnamed_to_li(pouet)\n\u003cli\u003e\u003cb\u003ea:\u003c/b\u003e One\u003c/li\u003e\n\u003cli\u003e\u003cb\u003eb:\u003c/b\u003e two\u003c/li\u003e\n\u003cli\u003e\u003cb\u003ec:\u003c/b\u003e three\u003c/li\u003e\n```\n\nYou can also pass a class: \n\n```\nnamed_to_li(pouet, class = \"this\")\n\u003cli class=\"this\"\u003e\u003cb\u003ea:\u003c/b\u003e One\u003c/li\u003e\n\u003cli class=\"this\"\u003e\u003cb\u003eb:\u003c/b\u003e two\u003c/li\u003e\n\u003cli class=\"this\"\u003e\u003cb\u003ec:\u003c/b\u003e three\u003c/li\u003e\n```\n\n### `tagRemoveAttributes`\n\nDoes the opposite of tagAppendAttributes\n\n```\na \u003c- tags$p(src = \"plop\", style = \"this\", \"pouet\")\n\na\n\u003cp src=\"plop\" style=\"this\"\u003epouet\u003c/p\u003e\n\ntagRemoveAttributes(a, \"src\")\n\u003cp style=\"this\"\u003epouet\u003c/p\u003e\n\ntagRemoveAttributes(a, \"src\", \"style\")\n\u003cp\u003epouet\u003c/p\u003e\n```\n\n### `display` and `undisplay`\n\nPut and remove a div to and from a `\u003cspan style=\"display: none;\"\u003e`. Allow to dynamically show and hide content.\n\n```\na \u003c- shiny::tagAppendAttributes(\n  shiny::tags$a(\"pouet\"), \n  style = \"align: center;\")\nb \u003c- undisplay(a)\nb\n\u003cspan style=\"display: none;\"\u003e\n  \u003ca style=\"align: center;\"\u003epouet\u003c/a\u003e\n\u003c/span\u003e\n  \ndisplay(b)\n\u003ca style=\"align: center;\"\u003epouet\u003c/a\u003e\n```\n\n\nPlease note that the 'brighter' project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThinkR-open%2Fbrighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FThinkR-open%2Fbrighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThinkR-open%2Fbrighter/lists"}