9. 9
> x <- rep(0, 2^31-1)
> x <- rep(0, 2^31)
エラー: サイズ 8.0 Gb のベクトルを割り当てることができません
追加情報: 警告メッセージ:
1: Reached total allocation of 16375Mb: see help(memory.size)
2: Reached total allocation of 16375Mb: see help(memory.size)
3: Reached total allocation of 16375Mb: see help(memory.size)
4: Reached total allocation of 16375Mb: see help(memory.size)
R-2.15.3までは
1ベクトルのサイズは
231
-1まで(32ビット)
※ベクトルだけでなく,配列や行列などのオブジェクトにも同じ制約あり