xml_ancestors as akin to xml_parent() and equivalent to xml_find_all(., "ancestor::*")

Đang mở
#454 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
r
Lĩnh vực
backend

Hướng nghiên cứu

Start by comparing the existing xml_parent() entry point with xml_find_all(., "ancestor::*") and review the related implementation and tests. Done means adding the requested ancestor helper with behavior equivalent to that XPath query and coverage for the functional result and performance rationale described in the issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

This is an equivalent to #409 in the other direction. For consistency it would be nice to have such a functional equivalent.

FWIW, we are also finding xml_parent() much more performant than xml_find_{first,all}(x, "parent::*"):

https://github.com/r-lib/lintr/issues/2718#issuecomment-2657368697

So presumably the same could be true of xml_ancestor().

Ngôn ngữ chính
R
Star
227
Fork
86
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của r-lib/xml2

Tất cả issue của r-lib/xml2

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.