{"id":13857322,"url":"https://github.com/sol-eng/targets-deployment-rsc","last_synced_at":"2026-03-11T12:06:15.396Z","repository":{"id":51374349,"uuid":"341687919","full_name":"sol-eng/targets-deployment-rsc","owner":"sol-eng","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-12T13:18:42.000Z","size":95,"stargazers_count":12,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-06T03:03:26.293Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sol-eng.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2021-02-23T20:56:42.000Z","updated_at":"2023-05-24T23:07:21.000Z","dependencies_parsed_at":"2022-08-25T13:01:36.278Z","dependency_job_id":null,"html_url":"https://github.com/sol-eng/targets-deployment-rsc","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/sol-eng%2Ftargets-deployment-rsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sol-eng%2Ftargets-deployment-rsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sol-eng%2Ftargets-deployment-rsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sol-eng%2Ftargets-deployment-rsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sol-eng","download_url":"https://codeload.github.com/sol-eng/targets-deployment-rsc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225920270,"owners_count":17545462,"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-08-05T03:01:33.397Z","updated_at":"2026-03-11T12:06:15.367Z","avatar_url":"https://github.com/sol-eng.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"## Deployment of a `targets` pipeline to RStudio Connect\n\n### Setup\n\nYou have to set your environment variables in the environment. If you are developing locally you do this by executing:\n\n```r\nSys.setenv(\"CONNECT_SERVER\" = \"XXXXX\")\nSys.setenv(\"CONNECT_API_KEY\" = \"XXXXX\")\n```\n\nThen you need to install the `renv` package and restore the snapshot so that you have all of the packages you need available. \n\n```r\ninstall.packages(\"renv\")\nrenv::restore()\n```\n\nWhen you are publishing the pipeline to RStudio Connect, you deploy the content and the necessary environment variables will be in the environment without any human intervention. \n\n### Running the pipeline\n\nThe `driver.Rmd` file drives the whole infrastructure build. One you knit that document the pipeline gets built. This file will generate an HTML report that is uploaded to RStudio Connect.\n\n\n### Architecture \u0026 Files\n\n- `driver.Rmd` executes the pipeline and acts as the parent environment\n- `_targets.R` lays down the pipeline and the settings for it\n- `report/report.Rmd` contains the report that will be published to RStudio Connect\n- `R/connect_helpers.R` hosts the function to publish content to RStudio Connect\n- `config.yml` specifies where to store the cache\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsol-eng%2Ftargets-deployment-rsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsol-eng%2Ftargets-deployment-rsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsol-eng%2Ftargets-deployment-rsc/lists"}