{"id":18174362,"url":"https://github.com/shinyworks/shinyenv","last_synced_at":"2026-03-08T00:33:16.240Z","repository":{"id":220409176,"uuid":"751573071","full_name":"shinyworks/shinyenv","owner":"shinyworks","description":"User-Specific Shiny Environments","archived":false,"fork":false,"pushed_at":"2024-02-05T15:24:52.000Z","size":3960,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T15:41:19.691Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://shinyenv.shinyworks.org/","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/shinyworks.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-01T21:48:49.000Z","updated_at":"2024-09-25T14:43:38.000Z","dependencies_parsed_at":"2024-02-05T16:50:04.656Z","dependency_job_id":null,"html_url":"https://github.com/shinyworks/shinyenv","commit_stats":null,"previous_names":["shinyworks/shinyenv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shinyworks/shinyenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyworks%2Fshinyenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyworks%2Fshinyenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyworks%2Fshinyenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyworks%2Fshinyenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinyworks","download_url":"https://codeload.github.com/shinyworks/shinyenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinyworks%2Fshinyenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30238904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:30:53.000Z","status":"ssl_error","status_checked_at":"2026-03-08T00:30:44.061Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-02T16:03:04.913Z","updated_at":"2026-03-08T00:33:16.221Z","avatar_url":"https://github.com/shinyworks.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, 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# shinyenv\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![CRAN status](https://www.r-pkg.org/badges/version/shinyenv)](https://CRAN.R-project.org/package=shinyenv)\n[![Codecov test coverage](https://codecov.io/gh/shinyworks/shinyenv/branch/main/graph/badge.svg)](https://app.codecov.io/gh/shinyworks/shinyenv?branch=main)\n[![R-CMD-check](https://github.com/shinyworks/shinyenv/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/shinyworks/shinyenv/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\nAn experimental package to deal with environment-like variables in Shiny.\n\n## Installation\n\nYou can install the development version of shinyenv from [GitHub](https://github.com/) with:\n\n```{r eval = FALSE}\n# install.packages(\"pak\")\npak::pak(\"shinyworks/shinyenv\")\n```\n\nAlternatively, you can use the functions without taking a dependency on {shinyenv}:\n\n```{r eval = FALSE}\n# install.packages(\"usethis\")\nusethis::use_standalone(\"shinyworks/shinyenv\", \"envvars\")\n```\n\n## Usage\n\n### You probably shouldn't use this package.\n\n\u003e You might see advice to use `session$userData` or other techniques to break out of the module straitjacket. Be wary of such advice: it’s showing you how to work around the rules imposed by namespacing, making it easy to re-introduce much complexity to your app and significantly reducing the benefits of using a module in the first place.  \n\u003e -- Hadley Wickham, \u003ccite\u003e[Mastering Shiny](https://mastering-shiny.org/scaling-modules.html#inputs-and-outputs)\u003c/cite\u003e\n\nYou should almost always use Shiny's built-in mechanisms for setting and accessing variables.\nI highly recommend reading [Mastering Shiny](https://mastering-shiny.org/) to be certain that you actually need this type of variable before using the options presented here.\n\nShiny variables can be roughly divided into three categories:\n\n-   **App-wide variables that apply to all users:** Use normal R variables, options (`getOption()`), and/or environment variables (`Sys.getenv()`).\n-   **Variables that apply to a single user:** Almost always use Shiny's `reactiveValues()`, `reactiveVal()`, `reactive()`, the `input` system, and/or return values from modules.\n-   **Variables that apply to a single user, are shared across multiple modules, and can be updated in multiple places:** Use this package. These should be places where, in a non-Shiny context, you would use `Sys.setenv()` to set a variable (for yourself) and `Sys.getenv()` to get it.\n\n### But if you're sure you want to...\n\nInstead of `Sys.setenv()`, use `shinyenv::shiny_setenv()`,\n\n```{r eval = FALSE}\n# NO: Sys.setenv(foo = \"bar\", baz = \"foo\")\nshinyenv::shiny_setenv(foo = \"bar\", baz = \"foo\")\n```\n\nInstead of `Sys.getenv()`, use `shinyenv::shiny_getenv()`,\n\n```{r eval = FALSE}\n# NO: Sys.getenv(\"foo\")\nshinyenv::shiny_getenv(\"foo\")\n```\n\n## Code of Conduct\n\nPlease note that the shinyenv project is released with a [Contributor Code of Conduct](https://shinyworks.github.io/shinyenv/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinyworks%2Fshinyenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinyworks%2Fshinyenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinyworks%2Fshinyenv/lists"}