[Feature Request]: Extend `within` to accept a custom parameter that links all lines to a dataname
Chưa có ai nhận issue nà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
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách lần theo entry point within.qenv và so sánh output get_code của nó với hành vi @linksto hiện có của eval_code. Hoàn tất khi một giá trị links_to trong within.qenv liên kết mã expr liên quan với dataname được chỉ định và giữ nguyên kết quả get_code đã được minh họa; issue không nêu tên file hoặc test nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature description
Extend within.qenv(data, expr, links_to = NULL, ...) so that links_to parameter will hint the code parser
The goal is that all the code in expr is hinted to one dataname (?or more?).
The get_code below would output the same code.
library(teal.code)
library(teal.data)
data_within <- teal_data() |> within({
options("AN_OPTION" = iris)
IRIS <- getOption("AN_OPTION")
}, links_to = "IRIS")
datanames(data_within) <- "IRIS"
get_code(data_within, datanames = "IRIS") |> cat()
#> IRIS <- getOption("AN_OPTION")
data_eval <- teal_data() |> eval_code("
options(\"AN_OPTION\" = iris) # @linksto IRIS
IRIS <- getOption(\"AN_OPTION\")
")
datanames(data_eval) <- "IRIS"
get_code(data_eval, datanames = "IRIS") |> cat()
#> options(AN_OPTION = iris)
#> IRIS <- getOption("AN_OPTION")
Created on 2024-02-20 with reprex v2.0.2
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
- Ngôn ngữ chính
- R
- Star
- 12
- Fork
- 11
- Merge trung bình
- 8 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 2
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 insightsengineering/teal.code
-
Move to PharmaverseCó thể đã có người làm @llrs-roche đã nhận 37 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
insightsengineering/teal.code#292 ·
-
[Feature Request]: High cyclomatic complexity leds to bad readabilityCó thể đã có người làm @llrs-roche đã nhận 38 ngày trước. Đang mởenhancement
Độ khó 3/5 3-5 ngày Mức phù hợp với người mới 45/100
insightsengineering/teal.code#295 ·
-
core discussion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
insightsengineering/teal.code#291 · 2 bình luận · 1 reaction ·
-
bug core
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
insightsengineering/teal.code#275 ·
-
bug core
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
insightsengineering/teal.code#272 ·
Tất cả issue của insightsengineering/teal.code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
stan-dev/priorsense#150 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bennettoxford/opencodecounts#170 ·
-
complexity::1-low effort::1-hours priority::3-could
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jumpingrivers/audit.workbench#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
complexity::1-low effort::1-hours priority::3-could
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
jumpingrivers/audit.connect#71 ·
Maintainer thường phản hồi trong vòng 1 ngày