Stop run_psa dropping the first parameter column
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start with make_psa_obj(parameters = psa_samp[, -1]) at R/run_psa.R:121 and the FUN validity guard near R/run_psa.R:47, and check how gen_psa_samp() builds the nsamp index column. The issue asks for the leading column to be dropped only when it is that index column, and for the guard to raise 'FUN is not well defined' via a tryCatch success flag. Done means new cases in tests/testthat/test_run_psa.R pass for a hand-built psa_samp and a misdefined FUN, and the audit repro is re-run on the branch.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
run_psa calls make_psa_obj(parameters = psa_samp[, -1]) unconditionally, so a hand-built psa_samp silently loses its first real parameter from $parameters and $parnames even though that parameter still drives FUN and the computed outcomes. Separately, the FUN-validity guard in the same file is dead code — is.na(sum(is.na(x))) is always FALSE, so the intended friendly error never fires.
Scope
- At
R/run_psa.R:121, drop the leading column only when it is thensampindex column thatgen_psa_samp()prepends - At
R/run_psa.R:47, replace the inert guard with atryCatchsuccess flag soFUN is not well definedis actually raised - Add regression tests in
tests/testthat/test_run_psa.Rfor a hand-builtpsa_sampand for a misdefinedFUN - Re-verify the audit repro on-branch before applying the proposed diff — this fix was reasoned from root cause, not re-run to green
Version: #172
- Ngôn ngữ chính
- R
- Star
- 43
- Fork
- 14
- Merge trung bình
- 4 giờ 44 phút
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DARTH-git/dampack
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Release dampack 1.1.0 to CRANĐang mởrelease
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation release
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DARTH-git/dampack
Issue tương tự
-
documentation priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Pascal-Kueng/dyadMLM#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Consider changesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OHDSI/OmopSketch#618 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
bug exec:agent status:fix-merged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ichirio/rtfreporter#1046 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày