future() arguments for passing R options and environment variables

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

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

評価

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

調査の方向性

まず future() API と future.apply および furrr の map-reduce API を確認し、現在引数がどのように渡されているかを理解します。2 つの記載された保護上の懸念を含め、R オプションと環境変数の想定される扱いを定義し、これらの API 間でインターフェースに一貫性があることを確認します。

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

説明

There are cases where one needs to customize options and environment variables used by the future. This can be done by explicitly setting those in the future expression, but that might be tedious, especially to make sure that they are unset afterward. Having future() do it for us is easier and avoids some code clutter. Here's one idea:

# Set env var 'FOO' with its currently set value, if set + set 'BAR' to "42"
f <- future(..., envvars = c("FOO", BAR = "42"))

# Set R options 'foo' with its currently set value, if set + set 'bar' to 42L
f <- future(..., options = c("foo", BAR = 42L))

These arguments should be exposed also in map-reduce APIs, e.g. future.apply and furrr.

Possible concerns

  • All types of options and environment variables should not be exported; is that something that future should monitor/protect again?
  • In R, certain environment variables must be set before launching R; is that something that future should monitor/protect again?
主要言語
R
スター
1k
フォーク
93
平均マージ
2日 4時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

futureverse/future のほかの issue

futureverse/future の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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