Exploratoryを6.0.3にアップグレードした後、data.table::freadを使用するRカスタムスクリプトがエラーになる。

症状

Exploratory Version 6.0.3にアップグレードした後、data.table::freadを使用したRスクリプトデータソースが、以下のようなエラーになることがあります。

i evaluates to a logical vector length 22 but there are 50 rows. Recycling of logical i is no longer allowed as it hides more bugs than is worth the rare convenience. Explicitly use rep(...,length=.N) if you really need to recycle.

回避方法

data.table::freadを呼ぶ際の引数に data.table=FALSE を渡すと、この問題を回避できる場合があります。

「いいね!」 1