[Feature Request]: remove `{rlang}` from `{teal.transform}`

オープン
#191 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r
領域
tooling

調査の方向性

まず、記載されている3つの{rlang}呼び出しとパッケージ依存関係の宣言を見つけます。置き換えを行う前に、それらの使用箇所に関連する既存のパッケージテストを確認してください。記載された呼び出しが適切なbaseまたはstatsの同等機能を使用し、{rlang}依存関係が削除され、テストがパスすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

core enhancement

{rlang} is used just a couple of times in 3 cases

  • rlang::is_empty -> substitute with length(x) == 0
  • rlang::set_names -> substitute with stats::setNames.
    • Documentation of rlang::set_namesstates: This is equivalent tostats::setNames()`, with more features and stricter argument checking.
  • rlang::parse_expr -> substitute with base::parse.
    • Documentation of rlang::parse_exprstates they are barely the same and the only difference is that: parser_expr, unlike base::parse, never retain source reference information, as doing so is slow and rarely necessary. We can substitute with parser(keep.source = FALSE).

Consider if we can substitute those with equivalents from {base} package.

Part of https://github.com/insightsengineering/teal.transform/issues/194

主要言語
R
スター
2
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pharmaverse/teal.transform のほかの issue

pharmaverse/teal.transform の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。