Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はマニュアルを突っ込んでいます.コミュニティに尋ねたかったのです:関数内でグローバル変数を設定するにはどうすればよいですか?
クリスチャンの答えがassign()示すように、グローバル環境で割り当てる方法があります。より簡単で短い (しかし、より良いというわけではありません... assign に固執する) 方法は、<<-演算子を使用することです。つまり、
assign()
<<-
a <<- "new"
関数内。