Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Non-exportable objects: Add support for future.globals.onReference=function(...) { }

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
r

調査の方向性

既存の future.globals.onReference の処理と future:::reference_filters() から始め、issue に示されている ignore_envirs フィルターも含めます。callback の戻り値の契約と、それが受け入れられる参照型とどのように相互作用するかを定義します。動作が仕様化され、一貫してサポートされれば作業は完了です。

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

説明

enhancement

Currently, R option future.globals.onReference can take values:

  • "ignore" - don't check for non-exportable objects among globals (fastest)
  • "message" - produce a message when a non-exportable objects is detected
  • "warning" - produce a warning when a non-exportable objects is detected
  • "error" - produce an error when a non-exportable objects is detected

I think it could be useful to provide some further control to savvy users/developers out there. More precisely, support for something like:

options(future.globals.onReference = function(ref) {
   # accept / reject 'ref' based on inspect
   # Q: What should be returned?  Above `"ignore"`, ..., `"error"`, or TRUE/FALSE?
})

Having this in place would simplify enabling future.globals.onReference = "error" by default. For instance, if it turns out there are references that can indeed be exported (yet to be heard of), then we can fall back to above filter.

OTH, there's alteady an internal future:::reference_filters() function that allows us to set, add, drop, reset the list of accepted reference types, e.g. (the following is already set)

future:::reference_filters("append", ignore_envirs = function(ref, typeof, class, ...) {
  typeof != "environment"
})

Maybe this is enough for now?

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

環境構築

はじめの一歩

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

futureverse/future のほかの issue

futureverse/future の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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