{"id":35311520,"url":"https://github.com/parmsam/cicdworkshop","last_synced_at":"2026-05-19T17:15:15.388Z","repository":{"id":62701186,"uuid":"561799244","full_name":"parmsam/cicdworkshop","owner":"parmsam","description":"practice material from cicd workshop for rinpharma 2022","archived":false,"fork":false,"pushed_at":"2022-11-04T16:45:18.000Z","size":3369,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-08T03:08:54.845Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://parmsam.github.io/cicdworkshop/","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/parmsam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-04T14:15:35.000Z","updated_at":"2022-11-04T16:49:58.000Z","dependencies_parsed_at":"2022-11-04T17:45:58.644Z","dependency_job_id":null,"html_url":"https://github.com/parmsam/cicdworkshop","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/parmsam/cicdworkshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmsam%2Fcicdworkshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmsam%2Fcicdworkshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmsam%2Fcicdworkshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmsam%2Fcicdworkshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parmsam","download_url":"https://codeload.github.com/parmsam/cicdworkshop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parmsam%2Fcicdworkshop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33225529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"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":[],"created_at":"2025-12-30T17:46:26.423Z","updated_at":"2026-05-19T17:15:15.383Z","avatar_url":"https://github.com/parmsam.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CI/CD Workshop | R in Pharma 2022\n\nR in Pharma 2022 CI/CD workshop repository.\n\nDate: November 4th, 2022\n\n## Exercises\n\n### Exercise 1\n\nFix issues identified by **R CMD check** workflow.\n\n\u003cdetails\u003e\u003csummary\u003eClick here for a hint 🔎\u003c/summary\u003e\nA unit test is failing for \u003ccode\u003ehello.R\u003c/code\u003e.\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n\u003cdetails\u003e\u003csummary\u003eClick here for the solution ✅\u003c/summary\u003e\nThe expected message should be \u003ccode\u003eWelcome to the R/Pharma CI/CD workshop!\u003c/code\u003e (\u003ccode\u003eR/Pharma\u003c/code\u003e is missing from the message) in the \u003ccode\u003etests/testthat/test-hello.R\u003c/code\u003e file.\n\u003c/details\u003e\n\n### Exercise 2\n\nFix broken links after implementing the **Check URLs** workflow.\n\n\u003cdetails\u003e\u003csummary\u003eClick here for a hint 🔎\u003c/summary\u003e\nAn R/Pharma link is broken in the \u003ccode\u003eNEWS.md\u003c/code\u003e file.\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n\u003cdetails\u003e\u003csummary\u003eClick here for the solution ✅\u003c/summary\u003e\nThe rinpharma website domain is incorrectly set as \u003ccode\u003e.xcom\u003c/code\u003e. It should be \u003ccode\u003e.com\u003c/code\u003e.\n\u003c/details\u003e\n\n### Exercise 3\n\nFind and fix all spelling errors determined by the **Spellcheck** workflow.\n\n\u003cdetails\u003e\u003csummary\u003eClick here for a hint 🔎\u003c/summary\u003e\nOne or more words are misspelled in the \u003ccode\u003eNEWS.md\u003c/code\u003e file.\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n\u003cdetails\u003e\u003csummary\u003eClick here for the solution ✅\u003c/summary\u003e\nThe word \u003ccode\u003elink\u003c/code\u003e is misspelled as \u003ccode\u003elinke\u003c/code\u003e in \u003ccode\u003eNEWS.md\u003c/code\u003e.\nThe word \u003ccode\u003estrangephrase\u003c/code\u003e should be \u003ccode\u003estrange phrase\u003c/code\u003e in \u003ccode\u003eNEWS.md\u003c/code\u003e.\nFix the spelling first in the \u003ccode\u003eNEWS.md\u003c/code\u003e file.\nNext, simply run \u003ccode\u003espelling::update_wordlist(confirm=\"Yes\")\u003c/code\u003e to add technical jargon to the wordlist.\n\u003c/details\u003e\n\n### Exercise 4\n\nFix code style errors implementing the **Style** workflow.\n\n\u003cdetails\u003e\u003csummary\u003eClick here for a hint 🔎\u003c/summary\u003e\nThere's a minor style issue in the \u003ccode\u003eR/hello.R\u003c/code\u003e file.\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n\u003cdetails\u003e\u003csummary\u003eClick here for the solution ✅\u003c/summary\u003e\nSimply run \u003ccode\u003estyler::style_file(\"R/hello.R\")\u003c/code\u003e to automatically style the file.\n\u003c/details\u003e\n\n### Exercise 5\n\nReduce the cyclomatic complexity identified by the **Lint Code Base** workflow.\n\n\u003cdetails\u003e\u003csummary\u003eClick here for a hint 🔎\u003c/summary\u003e\nThe issue is manifested in the \u003ccode\u003eR/hello.R\u003c/code\u003e file.\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n\u003cdetails\u003e\u003csummary\u003eClick here for the solution ✅\u003c/summary\u003e\nReduce the number of if statements to reduce the cyclomatic complexity in the \u003ccode\u003eR/hello.R\u003c/code\u003e file for the \u003ccode\u003elinter_ex()\u003c/code\u003e function.\nRun \u003ccode\u003estyler::style_file(\"R/hello.R\")\u003c/code\u003e to fix style issues, if any.\nThen, run \u003ccode\u003elintr::lint_package()\u003c/code\u003e iteratively to determine whether the issue has been resolved.\n\u003c/details\u003e\n\n### Exercise 6\n\nUpdate man pages based on the errors reported by the **ROxygen** workflow.\n\n\u003cdetails\u003e\u003csummary\u003eClick here for a hint 🔎\u003c/summary\u003e\nFunction documentation is not up-to-date for \u003ccode\u003eR/cicdworkshop-package.R\u003c/code\u003e and the \u003ccode\u003elinter_ex()\u003c/code\u003e function.\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n\u003cdetails\u003e\u003csummary\u003eClick here for the solution ✅\u003c/summary\u003e\nSimply run \u003ccode\u003eroxygen2::roxygenize('.', roclets = c('rd', 'collate', 'namespace'))\u003c/code\u003e or \u003ccode\u003edevtools::document()\u003c/code\u003e to automatically update all man pages.\n\u003c/details\u003e\n\n### Exercise 7\n\nIncrease code coverage for the package.\n\n\u003cdetails\u003e\u003csummary\u003eClick here for a hint 🔎\u003c/summary\u003e\nAdd a simple unit test for the \u003ccode\u003elinter_ex()\u003c/code\u003e function defined in the \u003ccode\u003eR/hello.R\u003c/code\u003e file.\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n\u003cdetails\u003e\u003csummary\u003eClick here for the solution ✅\u003c/summary\u003e\nRun \u003ccode\u003ecovr::package_coverage()\u003c/code\u003e to note the current code coverage.\n\nIn the \u003ccode\u003etests/testthat/test-hello.R\u003c/code\u003e file, add the following test:\n\n\u003cpre\u003e\ntest_that(\"linter_ex is surprised\", {\n  expect_message(\n    linter_ex(\"lint\"),\n    \"^Whoa!\\\\n\"\n  )\n})\n\u003c/pre\u003e\n\nRun tests locally by executing \u003ccode\u003edevtools::test()\u003c/code\u003e to make sure that the tests succeed.\n\nThen, run \u003ccode\u003ecovr::package_coverage()\u003c/code\u003e to see that the code coverage has increased.\n\u003c/details\u003e\n\n### Exercise 8\n\nPublish a website for your package using GitHub Pages.\n\n\u003cdetails\u003e\u003csummary\u003eClick here for a hint 🔎\u003c/summary\u003e\nUpdate the \u003ccode\u003e_pkgdown.yml\u003c/code\u003e and add the \u003cb\u003epkgdown\u003c/b\u003e workflow.\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n\u003cdetails\u003e\u003csummary\u003eClick here for the solution ✅\u003c/summary\u003e\nUpdate the \u003ccode\u003eurl\u003c/code\u003e by replacing \u003ccode\u003epharmaverse\u003c/code\u003e with your GitHub username and repository name.\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparmsam%2Fcicdworkshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparmsam%2Fcicdworkshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparmsam%2Fcicdworkshop/lists"}