Skip to content

Closes #45, #46: support inst/workflow and inst/workflows and avoid name clash#50

Open
Zelos Zhu (zdz2101) wants to merge 12 commits into
fix-43from
fix-45
Open

Closes #45, #46: support inst/workflow and inst/workflows and avoid name clash#50
Zelos Zhu (zdz2101) wants to merge 12 commits into
fix-43from
fix-45

Conversation

@zdz2101
Copy link
Copy Markdown
Contributor

@zdz2101 Zelos Zhu (zdz2101) commented May 15, 2026

Overview

Updated pull_workflows() to support both workflow directory conventions used across GSM repos. It now checks inst/workflow first, then falls back to inst/workflows, and only logs a skip message when neither path exists.

Added collision detection for destination paths under workflows/ so cross-package filename collisions are no longer silent. Behavior is configurable via collision_action:

  • "warn" (default): emit a warning and continue (last write wins)
  • "error": stop on first collision

Also updated roxygen docs and generated Rd files for pull_workflows(), pull_workflow_dir(), and pull_workflow_file().

Test Notes/Sample Code

  • Ran devtools::test(filter = 'snapshot-gh-mocks') (passing)
  • Added/updated mocked unit coverage for:
    • singular/plural workflow directory resolution
    • collision warning behavior
    • collision error behavior
  • Ran full devtools::test(); existing unrelated baseline failures remain in:
    • est-finalize-workflows.R (#34 expectation mismatch)
      
    • est-remove-site-explorer.R (#19 expectation mismatch)
      

Connected Issues

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

{qcthat} Report: User Acceptance

No issues are awaiting UAT.

This report was generated by this GitHub Actions run.

Last updated: 2026-05-15 21:11:21 UTC

Session Info ─ Session info ───────────────────────────────────────────────────────────────

setting value

version R version 4.6.0 (2026-04-24)

os Ubuntu 24.04.4 LTS

system x86_64, linux-gnu

ui X11

language (EN)

collate C.UTF-8

ctype C.UTF-8

tz UTC

date 2026-05-15

pandoc 3.1.3 @ /usr/bin/pandoc

quarto 1.9.37 @ /usr/local/bin/quarto

─ Packages ───────────────────────────────────────────────────────────────────

package * version date (UTC) lib source

askpass 1.2.1 2024-10-04 [1] RSPM

astgrepr 0.1.1 2025-06-07 [1] RSPM

backports 1.5.1 2026-04-03 [1] RSPM

base * 4.6.0 2026-04-24 [3] local

base64enc 0.1-6 2026-02-02 [1] RSPM

blob 1.3.0 2026-01-14 [1] RSPM

boot 1.3-32 2025-08-29 [3] CRAN (R 4.6.0)

brio 1.1.5 2024-04-24 [1] RSPM

bslib 0.10.0 2026-01-26 [1] RSPM

cachem 1.1.0 2024-05-16 [1] RSPM

callr 3.7.6 2024-03-25 [1] RSPM

checkmate 2.3.4 2026-02-03 [1] RSPM

class 7.3-23 2025-01-01 [3] CRAN (R 4.6.0)

cli 3.6.6 2026-04-09 [1] RSPM

clipr 0.8.0 2022-02-22 [1] RSPM

cluster 2.1.8.2 2026-02-05 [3] CRAN (R 4.6.0)

codetools 0.2-20 2024-03-31 [3] CRAN (R 4.6.0)

commonmark 2.0.0 2025-07-07 [1] RSPM

compiler 4.6.0 2026-04-24 [3] local

covr 3.6.5 2025-11-09 [1] RSPM

crayon 1.5.3 2024-06-20 [1] RSPM

credentials 2.0.3 2025-09-12 [1] RSPM

curl 7.1.0 2026-04-22 [1] RSPM

datasets * 4.6.0 2026-04-24 [3] local

DBI 1.3.0 2026-02-25 [1] RSPM

dbplyr 2.5.2 2026-02-13 [1] RSPM

desc 1.4.3 2023-12-10 [1] RSPM

diffobj 0.3.6 2025-04-21 [1] RSPM

digest 0.6.39 2025-11-19 [1] RSPM

dplyr 1.2.1 2026-04-03 [1] RSPM

duckdb 1.5.2 2026-04-13 [1] RSPM

emoji 16.0.0 2024-10-28 [1] RSPM

evaluate 1.0.5 2025-08-27 [1] RSPM

fastmap 1.2.0 2024-05-15 [1] RSPM

fontawesome 0.5.3 2024-11-16 [1] RSPM

foreign 0.8-91 2026-01-29 [3] CRAN (R 4.6.0)

fs 2.1.0 2026-04-18 [1] RSPM

generics 0.1.4 2025-05-09 [1] RSPM

gert 2.3.1 2026-01-11 [1] RSPM

gh 1.5.0 2025-05-26 [1] RSPM

git2r 0.36.2 2025-03-29 [1] RSPM

gitcreds 0.1.2 2022-09-08 [1] RSPM

glue 1.8.1 2026-04-17 [1] RSPM

graphics * 4.6.0 2026-04-24 [3] local

grDevices * 4.6.0 2026-04-24 [3] local

grid 4.6.0 2026-04-24 [3] local

highr 0.12 2026-03-06 [1] RSPM

htmltools 0.5.9 2025-12-04 [1] RSPM

httpuv 1.6.17 2026-03-18 [1] RSPM

httr 1.4.8 2026-02-13 [1] RSPM

httr2 1.2.2 2025-12-08 [1] RSPM

ini 0.3.1 2018-05-20 [1] RSPM

jquerylib 0.1.4 2021-04-26 [1] RSPM

jsonlite 2.0.0 2025-03-27 [1] RSPM

KernSmooth 2.23-26 2025-01-01 [3] CRAN (R 4.6.0)

knitr 1.51 2025-12-20 [1] RSPM

later 1.4.8 2026-03-05 [1] RSPM

lattice 0.22-9 2026-02-09 [3] CRAN (R 4.6.0)

lifecycle 1.0.5 2026-01-08 [1] RSPM

magrittr 2.0.5 2026-04-04 [1] RSPM

MASS 7.3-65 2025-02-28 [3] CRAN (R 4.6.0)

Matrix 1.7-5 2026-03-21 [3] CRAN (R 4.6.0)

memoise 2.0.1 2021-11-26 [1] RSPM

methods * 4.6.0 2026-04-24 [3] local

mgcv 1.9-4 2025-11-07 [3] CRAN (R 4.6.0)

mime 0.13 2025-03-17 [1] RSPM

nlme 3.1-169 2026-03-27 [3] CRAN (R 4.6.0)

nnet 7.3-20 2025-01-01 [3] CRAN (R 4.6.0)

openssl 2.4.1 2026-05-14 [1] RSPM

otel 0.2.0 2025-08-29 [1] RSPM

pak 0.9.5 2026-04-27 [2] local

parallel 4.6.0 2026-04-24 [3] local

pillar 1.11.1 2025-09-17 [1] RSPM

pkgbuild 1.4.8 2025-05-26 [1] RSPM

pkgconfig 2.0.3 2019-09-22 [1] RSPM

pkgload 1.5.2 2026-04-22 [1] RSPM

praise 1.0.0 2015-08-11 [1] RSPM

processx 3.9.0 2026-04-22 [1] RSPM

promises 1.5.0 2025-11-01 [1] RSPM

ps 1.9.3 2026-04-20 [1] RSPM

purrr 1.2.2 2026-04-10 [1] RSPM

qcthat 1.1.2 2026-05-15 [1] Github (Gilead-BioStats/qcthat@d0958dc)

R6 2.6.1 2025-02-15 [1] RSPM

rappdirs 0.3.4 2026-01-17 [1] RSPM

Rcpp 1.1.1-1.1 2026-04-24 [1] RSPM

rex 1.2.2 2026-03-28 [1] RSPM

rlang 1.2.0 2026-04-06 [1] RSPM

rmarkdown 2.31 2026-03-26 [1] RSPM

rpart 4.1.27 2026-03-27 [3] CRAN (R 4.6.0)

rprojroot 2.1.1 2025-08-26 [1] RSPM

rrapply 1.2.8 2025-11-25 [1] RSPM

rstudioapi 0.18.0 2026-01-16 [1] RSPM

sass 0.4.10 2025-04-11 [1] RSPM

sessioninfo 1.2.3 2025-02-05 [1] RSPM

shiny 1.13.0 2026-02-20 [1] RSPM

sourcetools 0.1.7-2 2026-03-28 [1] RSPM

spatial 7.3-18 2025-01-01 [3] CRAN (R 4.6.0)

splines 4.6.0 2026-04-24 [3] local

stats * 4.6.0 2026-04-24 [3] local

stats4 4.6.0 2026-04-24 [3] local

stringi 1.8.7 2025-03-27 [1] RSPM

stringr 1.6.0 2025-11-04 [1] RSPM

survival 3.8-6 2026-01-16 [3] CRAN (R 4.6.0)

sys 3.4.3 2024-10-04 [1] RSPM

tcltk 4.6.0 2026-04-24 [3] local

testthat 3.3.2 2026-01-11 [1] RSPM

tibble 3.3.1 2026-01-11 [1] RSPM

tidyr 1.3.2 2025-12-19 [1] RSPM

tidyselect 1.2.1 2024-03-11 [1] RSPM

tinytex 0.59 2026-03-28 [1] RSPM

tools 4.6.0 2026-04-24 [3] local

usethis 3.2.1 2025-09-06 [1] RSPM

utf8 1.2.6 2025-06-08 [1] RSPM

utils * 4.6.0 2026-04-24 [3] local

vctrs 0.7.3 2026-04-11 [1] RSPM

waldo 0.6.2 2025-07-11 [1] RSPM

whisker 0.4.1 2022-12-05 [1] RSPM

withr 3.0.2 2024-10-28 [1] RSPM

xfun 0.57 2026-03-20 [1] RSPM

xtable 1.8-8 2026-02-22 [1] RSPM

yaml 2.3.12 2025-12-10 [1] RSPM

zip 2.3.3 2025-05-13 [1] RSPM

[1] /home/runner/work/_temp/Library

[2] /opt/R/4.6.0/lib/R/site-library

[3] /opt/R/4.6.0/lib/R/library

  • ── Packages attached to the search path.

──────────────────────────────────────────────────────────────────────────────

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

{qcthat} Reports

PR-Associated Issues

⚠️ A qcthat issue test matrix with 1 milestone, 2 issues, and 8 tests
└─█─Milestone: v1.1.0 (2 issues, 8 tests)
  ├─📥─Issue 46: [workr] Workflow filename collisions silently overwrite
  │ ├─✅─pkgManifest forwards collision_action to pull_workflows #46
  │ ├─✅─pull_workflows does not register missing files as collisions #46
  │ ├─⚠️─pull_workflows warns on destination collisions by default #46
  │ ├─✅─pull_workflows can error on destination collisions #46
  │ ├─⚠️─pull_workflows warns on nested destination collisions in directories #46
  │ └─✅─pull_workflows warns and skips file-vs-directory structural collisions #46
  └─📥─Issue 45: [workr] Snapshot silently skips packages that use inst/workflows (plural)
    ├─✅─pull_workflows skips packages with no workflow directory #45
    └─✅─pull_workflows falls back to inst/workflows when singular path is missing #45
# Issue state: 📥 = open, ☑️ = closed (completed), ⛔ = closed (won't fix)
# Test disposition: ✅ = passed, ❌ = failed, 🚫 = skipped
⚠️ 2 tests generated warnings

🟢 All issues have at least one test


Completed Issues

🚫 A qcthat issue test matrix with 1 milestone, 5 issues, and 78 tests
├─█─Milestone: v1.0.0 (3 issues, 71 tests)
│ ├─☑️─Issue 26: Improve unit test coverage for v1.0 release
│ │ ├─✅─MakeWorkflowList loads YAML and RunStep executes workflow correctly #26
│ │ ├─✅─Complex workflow: multi-step loaded from YAML and executed end-to-end #26
│ │ ├─✅─Workflow from YAML loads and executes with meta reference #26
│ │ ├─✅─loadExample returns input data when initData.R is missing (#9, #26)
│ │ ├─✅─loadExample loads initData.R and merges with lData (#9, #26)
│ │ ├─✅─loadExample validates initData return type (#9, #26)
│ │ ├─✅─loadExample does not create duplicate names on repeated calls (#9, #26)
│ │ ├─✅─MakeWorkflowList output is a named list with expected structure #26
│ │ ├─✅─MakeWorkflowList returns metadata as expected #26
│ │ ├─✅─MakeWorkflowList errors on invalid strPath #26
│ │ ├─✅─MakeWorkflowList errors on invalid strPackage #26
│ │ ├─✅─MakeWorkflowList filters by strNames #26
│ │ ├─✅─MakeWorkflowList bExact filters exactly #26
│ │ ├─✅─MakeWorkflowList names list elements by meta$ID #26
│ │ ├─✅─MakeWorkflowList sorts by Priority #26
│ │ ├─✅─MakeWorkflowList sets default Priority to 0 #26
│ │ ├─✅─MakeWorkflowList loads from package #26
│ │ ├─✅─MakeWorkflowList bRecursive finds nested workflows #26
│ │ ├─✅─RunProject runs all phases in sorted order #26
│ │ ├─✅─RunProject passes data between phases #26
│ │ ├─✅─RunProject respects strPhases subset and order #26
│ │ ├─✅─RunProject errors on missing strPath #26
│ │ ├─✅─RunProject errors on missing requested phases #26
│ │ ├─✅─RunProject errors on empty project directory #26
│ │ ├─✅─RunProject bReturnResult and bKeepInputData pass through #26
│ │ ├─✅─RunQuery returns correct result (#26)
│ │ ├─✅─RunQuery handles empty df #26
│ │ ├─✅─RunQuery handles invalid input #26
│ │ ├─✅─RunQuery checks if strQuery contains 'FROM df' #26
│ │ ├─✅─RunQuery applies schema appropriately #26
│ │ ├─✅─RunQuery applies incomplete schema appropriately #26
│ │ ├─✅─RunQuery parses invalid date/times correctly #26
│ │ ├─✅─RunQuery requires lColumnMapping when bUseSchema is TRUE #26
│ │ ├─✅─RunStep handles lMeta and lData parameters correctly #26
│ │ ├─✅─RunStep handles parameters referencing elements within lMeta and lData #26
│ │ ├─✅─RunStep passes direct value parameters correctly #26
│ │ ├─✅─RunStep passes direct value vector parameters correctly #26
│ │ ├─✅─RunStep handles multiple parameters and function invocation correctly #26
│ │ ├─✅─RunStep will run a function from a namespace #26
│ │ ├─✅─RunStep will run a function without a namespace #26
│ │ ├─✅─RunStep will run a function with no parameters #26
│ │ ├─✅─RunStep recognizes rlang::expr() string parameters #26
│ │ ├─✅─RunStep recognizes expr() shorthand parameters #26
│ │ ├─✅─RunStep recognizes rlang::exprs() parameters #26
│ │ ├─✅─RunStep recognizes exprs() shorthand parameters #26
│ │ ├─✅─RunStep passes lSpec parameter correctly #26
│ │ ├─✅─RunWorkflow returns final step result by default #26
│ │ ├─✅─RunWorkflow returns full workflow object when bReturnResult = FALSE #26
│ │ ├─✅─RunWorkflow bKeepInputData = FALSE removes input data from lData #26
│ │ ├─✅─RunWorkflow bKeepInputData = TRUE preserves input data in lData #26
│ │ ├─✅─RunWorkflow multi-step preserves intermediate results in lData #26
│ │ ├─✅─RunWorkflow invokes lConfig$LoadData #26
│ │ ├─✅─RunWorkflow invokes lConfig$SaveData on bReturnResult = TRUE #26
│ │ ├─✅─RunWorkflow validates spec when present #26
│ │ ├─✅─RunWorkflow runs without spec #26
│ │ ├─✅─RunWorkflow runs with YAML files #26
│ │ ├─✅─RunWorkflows returns named list #26
│ │ ├─✅─RunWorkflows passes prior workflow results as data to later workflows #26
│ │ ├─✅─RunWorkflows custom strResultNames #26
│ │ ├─✅─RunWorkflows passes lConfig through to RunWorkflow #26
│ │ └─✅─RunWorkflows handles empty workflow list #26
│ ├─☑️─Issue 25: Differentiate package manifests from execution snapshots
│ │ ├─✅─pkgManifest function exists #25
│ │ ├─✅─pkgManifest has correct parameters #25
│ │ ├─✅─pkgSnapshot function name is deprecated/removed #25
│ │ └─✅─pkgListFromManifest references correct function #25
│ └─☑️─Issue 19: Remove Legacy /site Explorer From workr
│   ├─✅─site/ directory does not exist #19
│   ├─✅─site-build.yaml workflow does not exist #19
│   ├─✅─site-deploy.yaml workflow does not exist #19
│   ├─✅─pkgdown-all.yaml has no Node/explorer steps #19
│   ├─✅─_pkgdown.yml has no explorer navbar entry #19
│   └─✅─.gitignore has no site/node_modules/ entry #19
└─█─Milestone: <none> (2 issues, 11 tests)
  ├─☑️─Issue 34: Finalize inst/workflows and demo Shiny app for shinyapps.io deployment
  │ ├─✅─03_AEKRI directory does not exist #34
  │ ├─✅─03_KRI initData.R does not reference gsm.core::lSource #34
  │ ├─✅─03_KRI initData.R does not reference PD domain #34
  │ ├─✅─03_KRI initData.R uses clindata package #34
  │ ├─✅─03_KRI initData.R returns Raw_SUBJ and Raw_AE #34
  │ ├─🚫─03_KRI RunWorkflows completes without error using initData #34
  │ └─✅─README contains link to hosted shinyapps.io demo #34
  └─☑️─Feature 9: Create Test data to initialize workflows
    ├─✅─loadExample returns input data when initData.R is missing (#9, #26)
    ├─✅─loadExample loads initData.R and merges with lData (#9, #26)
    ├─✅─loadExample validates initData return type (#9, #26)
    └─✅─loadExample does not create duplicate names on repeated calls (#9, #26)
# Issue state: 📥 = open, ☑️ = closed (completed), ⛔ = closed (won't fix)
# Test disposition: ✅ = passed, ❌ = failed, 🚫 = skipped
🚫 1 test was skipped

🟢 All issues have at least one test

🙈 7 issues with label "qcthat-nocov" were ignored


This report was generated by this GitHub Actions run.

Last updated: 2026-05-15 21:11:22 UTC

Session Info ─ Session info ───────────────────────────────────────────────────────────────

setting value

version R version 4.6.0 (2026-04-24)

os Ubuntu 24.04.4 LTS

system x86_64, linux-gnu

ui X11

language (EN)

collate C.UTF-8

ctype C.UTF-8

tz UTC

date 2026-05-15

pandoc 3.1.3 @ /usr/bin/pandoc

quarto 1.9.37 @ /usr/local/bin/quarto

─ Packages ───────────────────────────────────────────────────────────────────

package * version date (UTC) lib source

askpass 1.2.1 2024-10-04 [1] RSPM

astgrepr 0.1.1 2025-06-07 [1] RSPM

backports 1.5.1 2026-04-03 [1] RSPM

base * 4.6.0 2026-04-24 [3] local

base64enc 0.1-6 2026-02-02 [1] RSPM

blob 1.3.0 2026-01-14 [1] RSPM

boot 1.3-32 2025-08-29 [3] CRAN (R 4.6.0)

brio 1.1.5 2024-04-24 [1] RSPM

bslib 0.10.0 2026-01-26 [1] RSPM

cachem 1.1.0 2024-05-16 [1] RSPM

callr 3.7.6 2024-03-25 [1] RSPM

checkmate 2.3.4 2026-02-03 [1] RSPM

class 7.3-23 2025-01-01 [3] CRAN (R 4.6.0)

cli 3.6.6 2026-04-09 [1] RSPM

clipr 0.8.0 2022-02-22 [1] RSPM

cluster 2.1.8.2 2026-02-05 [3] CRAN (R 4.6.0)

codetools 0.2-20 2024-03-31 [3] CRAN (R 4.6.0)

commonmark 2.0.0 2025-07-07 [1] RSPM

compiler 4.6.0 2026-04-24 [3] local

covr 3.6.5 2025-11-09 [1] RSPM

crayon 1.5.3 2024-06-20 [1] RSPM

credentials 2.0.3 2025-09-12 [1] RSPM

curl 7.1.0 2026-04-22 [1] RSPM

datasets * 4.6.0 2026-04-24 [3] local

DBI 1.3.0 2026-02-25 [1] RSPM

dbplyr 2.5.2 2026-02-13 [1] RSPM

desc 1.4.3 2023-12-10 [1] RSPM

diffobj 0.3.6 2025-04-21 [1] RSPM

digest 0.6.39 2025-11-19 [1] RSPM

dplyr 1.2.1 2026-04-03 [1] RSPM

duckdb 1.5.2 2026-04-13 [1] RSPM

emoji 16.0.0 2024-10-28 [1] RSPM

evaluate 1.0.5 2025-08-27 [1] RSPM

fastmap 1.2.0 2024-05-15 [1] RSPM

fontawesome 0.5.3 2024-11-16 [1] RSPM

foreign 0.8-91 2026-01-29 [3] CRAN (R 4.6.0)

fs 2.1.0 2026-04-18 [1] RSPM

generics 0.1.4 2025-05-09 [1] RSPM

gert 2.3.1 2026-01-11 [1] RSPM

gh 1.5.0 2025-05-26 [1] RSPM

git2r 0.36.2 2025-03-29 [1] RSPM

gitcreds 0.1.2 2022-09-08 [1] RSPM

glue 1.8.1 2026-04-17 [1] RSPM

graphics * 4.6.0 2026-04-24 [3] local

grDevices * 4.6.0 2026-04-24 [3] local

grid 4.6.0 2026-04-24 [3] local

highr 0.12 2026-03-06 [1] RSPM

htmltools 0.5.9 2025-12-04 [1] RSPM

httpuv 1.6.17 2026-03-18 [1] RSPM

httr 1.4.8 2026-02-13 [1] RSPM

httr2 1.2.2 2025-12-08 [1] RSPM

ini 0.3.1 2018-05-20 [1] RSPM

jquerylib 0.1.4 2021-04-26 [1] RSPM

jsonlite 2.0.0 2025-03-27 [1] RSPM

KernSmooth 2.23-26 2025-01-01 [3] CRAN (R 4.6.0)

knitr 1.51 2025-12-20 [1] RSPM

later 1.4.8 2026-03-05 [1] RSPM

lattice 0.22-9 2026-02-09 [3] CRAN (R 4.6.0)

lifecycle 1.0.5 2026-01-08 [1] RSPM

magrittr 2.0.5 2026-04-04 [1] RSPM

MASS 7.3-65 2025-02-28 [3] CRAN (R 4.6.0)

Matrix 1.7-5 2026-03-21 [3] CRAN (R 4.6.0)

memoise 2.0.1 2021-11-26 [1] RSPM

methods * 4.6.0 2026-04-24 [3] local

mgcv 1.9-4 2025-11-07 [3] CRAN (R 4.6.0)

mime 0.13 2025-03-17 [1] RSPM

nlme 3.1-169 2026-03-27 [3] CRAN (R 4.6.0)

nnet 7.3-20 2025-01-01 [3] CRAN (R 4.6.0)

openssl 2.4.1 2026-05-14 [1] RSPM

otel 0.2.0 2025-08-29 [1] RSPM

pak 0.9.5 2026-04-27 [2] local

parallel 4.6.0 2026-04-24 [3] local

pillar 1.11.1 2025-09-17 [1] RSPM

pkgbuild 1.4.8 2025-05-26 [1] RSPM

pkgconfig 2.0.3 2019-09-22 [1] RSPM

pkgload 1.5.2 2026-04-22 [1] RSPM

praise 1.0.0 2015-08-11 [1] RSPM

processx 3.9.0 2026-04-22 [1] RSPM

promises 1.5.0 2025-11-01 [1] RSPM

ps 1.9.3 2026-04-20 [1] RSPM

purrr 1.2.2 2026-04-10 [1] RSPM

qcthat 1.1.2 2026-05-15 [1] Github (Gilead-BioStats/qcthat@d0958dc)

R6 2.6.1 2025-02-15 [1] RSPM

rappdirs 0.3.4 2026-01-17 [1] RSPM

Rcpp 1.1.1-1.1 2026-04-24 [1] RSPM

rex 1.2.2 2026-03-28 [1] RSPM

rlang 1.2.0 2026-04-06 [1] RSPM

rmarkdown 2.31 2026-03-26 [1] RSPM

rpart 4.1.27 2026-03-27 [3] CRAN (R 4.6.0)

rprojroot 2.1.1 2025-08-26 [1] RSPM

rrapply 1.2.8 2025-11-25 [1] RSPM

rstudioapi 0.18.0 2026-01-16 [1] RSPM

sass 0.4.10 2025-04-11 [1] RSPM

sessioninfo 1.2.3 2025-02-05 [1] RSPM

shiny 1.13.0 2026-02-20 [1] RSPM

sourcetools 0.1.7-2 2026-03-28 [1] RSPM

spatial 7.3-18 2025-01-01 [3] CRAN (R 4.6.0)

splines 4.6.0 2026-04-24 [3] local

stats * 4.6.0 2026-04-24 [3] local

stats4 4.6.0 2026-04-24 [3] local

stringi 1.8.7 2025-03-27 [1] RSPM

stringr 1.6.0 2025-11-04 [1] RSPM

survival 3.8-6 2026-01-16 [3] CRAN (R 4.6.0)

sys 3.4.3 2024-10-04 [1] RSPM

tcltk 4.6.0 2026-04-24 [3] local

testthat 3.3.2 2026-01-11 [1] RSPM

tibble 3.3.1 2026-01-11 [1] RSPM

tidyr 1.3.2 2025-12-19 [1] RSPM

tidyselect 1.2.1 2024-03-11 [1] RSPM

tinytex 0.59 2026-03-28 [1] RSPM

tools 4.6.0 2026-04-24 [3] local

usethis 3.2.1 2025-09-06 [1] RSPM

utf8 1.2.6 2025-06-08 [1] RSPM

utils * 4.6.0 2026-04-24 [3] local

vctrs 0.7.3 2026-04-11 [1] RSPM

waldo 0.6.2 2025-07-11 [1] RSPM

whisker 0.4.1 2022-12-05 [1] RSPM

withr 3.0.2 2024-10-28 [1] RSPM

xfun 0.57 2026-03-20 [1] RSPM

xtable 1.8-8 2026-02-22 [1] RSPM

yaml 2.3.12 2025-12-10 [1] RSPM

zip 2.3.3 2025-05-13 [1] RSPM

[1] /home/runner/work/_temp/Library

[2] /opt/R/4.6.0/lib/R/site-library

[3] /opt/R/4.6.0/lib/R/library

  • ── Packages attached to the search path.

──────────────────────────────────────────────────────────────────────────────

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates workflow snapshot pulling so repositories using either inst/workflow or inst/workflows are discovered before being skipped.

Changes:

  • Adds ordered lookup across singular and plural workflow directories.
  • Updates skip messaging when neither directory exists.
  • Adds mocked tests for missing directories and plural fallback behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
R/utils-workflows.R Adds fallback lookup for inst/workflows in pull_workflows().
tests/testthat/test-snapshot-gh-mocks.R Updates/extends mocked coverage for workflow directory probing and plural-path dispatch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/utils-workflows.R
Zelos Zhu (zdz2101) and others added 2 commits May 15, 2026 09:40
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • man/pull_workflows.Rd: Language not supported

Comment thread DESCRIPTION Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@zdz2101 Zelos Zhu (zdz2101) changed the title Closes #45: support inst/workflow and inst/workflows Closes #45. #46: support inst/workflow and inst/workflows and avoid name clash May 15, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@zdz2101 Zelos Zhu (zdz2101) changed the title Closes #45. #46: support inst/workflow and inst/workflows and avoid name clash Closes #45, #46: support inst/workflow and inst/workflows and avoid name clash May 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 6 changed files in this pull request and generated 3 comments.

Files not reviewed (3)
  • man/pull_workflow_dir.Rd: Language not supported
  • man/pull_workflow_file.Rd: Language not supported
  • man/pull_workflows.Rd: Language not supported
Comments suppressed due to low confidence (1)

R/utils-workflows.R:144

  • This records a destination as occupied before gh_api() and writeLines() confirm a file was actually written. Since pull_workflow_file() still treats Not Found as a skipped write, a later package with the same destination can incorrectly warn or fail even though no previous file exists.
    assign(collision_key, source_repo, envir = collision_registry)

Comment thread R/utils-workflows.R
Comment thread R/utils-workflows.R
Comment thread R/utils-workflows.R
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 8 changed files in this pull request and generated 2 comments.

Files not reviewed (4)
  • man/pkgManifest.Rd: Language not supported
  • man/pull_workflow_dir.Rd: Language not supported
  • man/pull_workflow_file.Rd: Language not supported
  • man/pull_workflows.Rd: Language not supported

Comment thread R/utils-workflows.R
Comment thread R/utils-workflows.R
Merge branch 'fix-43' into fix-45
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

📊 Test coverage: 48.55%

Per-file coverage
File Coverage
R/DemoApp.R 0%
R/internal.R 75.6%
R/MakeWorkflowList.R 86.1%
R/RunProject.R 90.3%
R/RunQuery.R 90.7%
R/RunStep.R 97.6%
R/RunWorkflow.R 87.5%
R/RunWorkflows.R 100%
R/snapshot.R 86.4%
R/utils-examples.R 95%
R/utils-github.R 63.1%
R/utils-manifest.R 0%
R/utils-toml.R 100%
R/utils-workflows.R 88%

Generated by this GitHub Action. Updated: 2026-05-15T21:11:19Z

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

🌐 PR pkgdown deployed: https://Gilead-BioStats.github.io/workr/pr/50/dev

Generated by this GitHub Action. Updated: 2026-05-15T21:12:04Z

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 8 changed files in this pull request and generated 1 comment.

Files not reviewed (4)
  • man/pkgManifest.Rd: Language not supported
  • man/pull_workflow_dir.Rd: Language not supported
  • man/pull_workflow_file.Rd: Language not supported
  • man/pull_workflows.Rd: Language not supported

Comment thread R/utils-workflows.R
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 8 changed files in this pull request and generated 1 comment.

Files not reviewed (4)
  • man/pkgManifest.Rd: Language not supported
  • man/pull_workflow_dir.Rd: Language not supported
  • man/pull_workflow_file.Rd: Language not supported
  • man/pull_workflows.Rd: Language not supported

Comment thread R/utils-workflows.R
Zelos Zhu (zdz2101) and others added 2 commits May 15, 2026 13:58
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[workr] Workflow filename collisions silently overwrite [workr] Snapshot silently skips packages that use inst/workflows (plural)

2 participants