{"id":40081066,"url":"https://github.com/jrosell/playground4rocker","last_synced_at":"2026-01-19T09:07:30.739Z","repository":{"id":222835807,"uuid":"736697306","full_name":"jrosell/playground4rocker","owner":"jrosell","description":"Github actions and docker deployment workflows for R projects.","archived":false,"fork":false,"pushed_at":"2024-02-29T16:28:47.000Z","size":200,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-01T12:27:48.741Z","etag":null,"topics":["cran","docker","github-actions","lts","packages","r","r2u","renv","rocker","rstats","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrosell.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-28T16:02:42.000Z","updated_at":"2024-03-01T12:27:48.742Z","dependencies_parsed_at":"2024-02-16T14:52:32.482Z","dependency_job_id":null,"html_url":"https://github.com/jrosell/playground4rocker","commit_stats":null,"previous_names":["jrosell/playground4rocker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jrosell/playground4rocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Fplayground4rocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Fplayground4rocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Fplayground4rocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Fplayground4rocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrosell","download_url":"https://codeload.github.com/jrosell/playground4rocker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrosell%2Fplayground4rocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cran","docker","github-actions","lts","packages","r","r2u","renv","rocker","rstats","ubuntu"],"created_at":"2026-01-19T09:07:30.682Z","updated_at":"2026-01-19T09:07:30.733Z","avatar_url":"https://github.com/jrosell.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# playground4rocker\n\nIn this repo there are multiple github actions and docker deployment workflows available. \n\nI tested to run [R code](https://www.brodrigues.co/blog/2022-11-19-raps/) using different approaches. The output files are uploaded as an artifact zip of the executed jobs.\n\n## Github Actions\n\nResults:\n\n* With [.github/workflows/r2u.yml](.github/workflows/r2u.yml), last R package versions with r2u are used. ETA 49s.\n\n* With [.github/workflows/pak.yml](.github/workflows/pak.yml), last R package versions with pak are used. ETA 1m 18s.\n\n* With [.github/workflows/conda.yml](.github/workflows/conda.yml), last R package versions with conda are used. ETA 1m 25s.\n\n* With [.github/workflows/renv.yml](.github/workflows/renv.yml), locked R package versions with renv are used. ETA 12m 24s (slower but more reproducible).\n\nConclusions:\n\n* When using Ubuntu, r2u is the fastest approach to run the code with the last R package versions. \n* When not using Ubuntu, pak or conda approaches can be used to run the code with the last R package versions. \n* When requiring specific versions, renv approach can be used. It will be slower but more reproducible.\n\n\n## How to build images and run containers locally\n\nFirst clone the repository in your computer:\n\n```         \n$ git clone git@github.com:jrosell/playground4rocker.git\n\n$ cd playground4rocker\n```\n\nThen run the R code with the fastest approach this way:\n\n```         \n$ docker build -f r2u.Dockerfile -t my-r2u-name . \\\n  \u0026\u0026 docker run --name my_r2u_container --rm  -v $(pwd)/output:/workspace/output/:rw  my-r2u-name\n```\n\nAlternatively, you can run R code with the more reproducible but slow approach this way:\n\n```         \n$ docker build -f renv.Dockerfile -t my-renv-name .  \\\n  \u0026\u0026 docker run --name my_renv_container --rm -v $(pwd)/output:/workspace/output/:rw my-renv-name\n```\n\nIf you have added Python code and need to run both R and Python code, you can use this version:\n\n```  \n$ docker build -f conda.Dockerfile -t my-conda-name . \\\n  \u0026\u0026 docker run --name my_conda_container --rm -v $(pwd)/output:/workspace/output/:rw my-conda-name\n```  \n\n## Follow up\n\nFeedback is welcome:\n\n* Suggestions? Bugs? You can open an issue.\n* You can fork this repo an reuse it. I'm open to PR too.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrosell%2Fplayground4rocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrosell%2Fplayground4rocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrosell%2Fplayground4rocker/lists"}