{"id":14066301,"url":"https://github.com/vanhry/R.control","last_synced_at":"2025-07-29T22:33:50.232Z","repository":{"id":37433059,"uuid":"504548574","full_name":"vanhry/R.control","owner":"vanhry","description":"Lightweight R shiny app for managing R services (plumber/shiny) deployed with Caddy","archived":false,"fork":false,"pushed_at":"2022-07-20T11:38:54.000Z","size":382,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-06T11:49:57.469Z","etag":null,"topics":["caddy","golem","plumber","r","shiny"],"latest_commit_sha":null,"homepage":"","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/vanhry.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-17T13:39:56.000Z","updated_at":"2024-02-16T23:31:38.000Z","dependencies_parsed_at":"2022-07-20T12:17:30.443Z","dependency_job_id":null,"html_url":"https://github.com/vanhry/R.control","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/vanhry%2FR.control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhry%2FR.control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhry%2FR.control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhry%2FR.control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanhry","download_url":"https://codeload.github.com/vanhry/R.control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228060014,"owners_count":17863351,"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":["caddy","golem","plumber","r","shiny"],"created_at":"2024-08-13T07:05:02.029Z","updated_at":"2024-12-04T06:30:30.355Z","avatar_url":"https://github.com/vanhry.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## R.control\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/vanhry/R.control/workflows/R-CMD-check/badge.svg)](https://github.com/vanhry/R.control/actions)\n\u003c!-- badges: end --\u003e\n\nThe goal of R.control is to control all of your R plumber (actually any http based) services in one place.\n\n# Shiny app\n\n#### Deployment of shiny app\n\nLightweight version of shiny application based on [R-minimal Docker image](https://github.com/r-hub/r-minimal) with simple and secure [Caddy server](https://github.com/caddyserver/caddy)\n\nYou just need to clone the repo, build the docker, install system variables `$HOST` and `$EMAIL`, and run:\n```docker-compose up -d```\n\nAnd that's it! `r emo::ji(\"contest\")`\n\n# Package\n\n#### Installation of package\n\nDevelopment version\n\n``` R\nremotes::install_github(\"vanhry/R.control\")\n```\n\n``` {r}\nlibrary(R.control)\n```\n\nIf you want to use this library you must create `yaml` file of your plumber services\n\n``` yaml\n`r xfun::file_string(system.file(\"plumber_services.yaml\",package=\"R.control\"))`\n```\n\nAdd to your `plumber.R` file **/healthcheck** method\n```r\n#' @get /healthcheck\nfunction(res) {\n  res$status \u003c- 200\n  res$body \u003c- \"Healthy\"\n  res\n}\n```\n\nYou can use `create_table_plumber(\"path/to/file\")` to receive the table of all services\n\n```{r}\ndata \u003c- create_table_plumber(system.file(\"plumber_services.yaml\",package=\"R.control\"))\ndata\n```\n\nAlso it's possible to use shiny application with:\n```r\nR.control::run_app()\n```\n![Shiny app screen](inst/imageapp3.png)\n\nIf click on Details for shiny server, it will open the modal with each service\n\n![Shiny apps](inst/imageapp2.png)\n\nBuild Docker\n```shell\ndocker build . -t user/plumbercontrol_app -f Dockerfile\n```\n\nProject was created using [golem](https://github.com/ThinkR-open/golem) package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanhry%2FR.control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanhry%2FR.control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanhry%2FR.control/lists"}