Repository navigation
fread error with explicit 'select = NULL' #2007
Copy link
Copy link
Closed
Description
Activity
I guess this line should be changed:
if (!missing(select)) {To
if (!is.null(select)) {Otherwise no default value for
selectshould be given.@dselivanov i was just going to sit down and crank out this PR, unless you've already started?
- It seems it already somehow fixed in Dev version. Could you please double check? 25 сент. 2017 г. 4:37 пользователь "Michael Chirico" < [email protected]> написал: @dselivanov <https://github.com/dselivanov> i was just going to sit down and crank out this PR, unless you've already started? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#2007 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AE4u3aKh8Of-hZrsodXLBvjSOGgbjSv7ks5slvWxgaJpZM4Lxasz> .
- hmm the offending line of code appears to remain (`if (!missing(select))`)…On Sep 25, 2017 12:01 PM, "Dmitriy Selivanov" ***@***.***> wrote: It seems it already somehow fixed in Dev version. Could you please double check? 25 сент. 2017 г. 4:37 пользователь "Michael Chirico" < ***@***.***> написал: @dselivanov <https://github.com/dselivanov> i was just going to sit down and crank out this PR, unless you've already started? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/Rdatatable/data.table/issues/ 2007#issuecomment-331751182>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AE4u3aKh8Of- hZrsodXLBvjSOGgbjSv7ks5slvWxgaJpZM4Lxasz> . — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2007 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHQQdeezcPbnrhqfGMHNYpwu9uewsu9qks5slyWHgaJpZM4Lxasz> .
- I know! :-) I found it works in dev after I finished PR on last night. But seems it works, isn't it? 2017-09-25 9:07 GMT+04:00 Michael Chirico <[email protected]>:…hmm the offending line of code appears to remain (`if (!missing(select))`) On Sep 25, 2017 12:01 PM, "Dmitriy Selivanov" ***@***.***> wrote: > It seems it already somehow fixed in Dev version. Could you please double > check? > > 25 сент. 2017 г. 4:37 пользователь "Michael Chirico" < > ***@***.***> написал: > > @dselivanov <https://github.com/dselivanov> i was just going to sit down > and crank out this PR, unless you've already started? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/Rdatatable/data.table/issues/ > 2007#issuecomment-331751182>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AE4u3aKh8Of- > hZrsodXLBvjSOGgbjSv7ks5slvWxgaJpZM4Lxasz> > . > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/Rdatatable/data.table/issues/ 2007#issuecomment-331771842>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ AHQQdeezcPbnrhqfGMHNYpwu9uewsu9qks5slyWHgaJpZM4Lxasz> > . > — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#2007 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AE4u3dD5a5uKScJnFc4QMYZW4MQVhteMks5slzT2gaJpZM4Lxasz> .-- Regards Dmitriy Selivanov
- not at a machine so can't confirm. maybe something with R changed? does it still fail on CRAN? On Sep 25, 2017 1:11 PM, "Dmitriy Selivanov" <[email protected]> wrote:…I know! :-) I found it works in dev after I finished PR on last night. But seems it works, isn't it? 2017-09-25 9:07 GMT+04:00 Michael Chirico ***@***.***>: > hmm the offending line of code appears to remain (`if (!missing(select))`) > > On Sep 25, 2017 12:01 PM, "Dmitriy Selivanov" ***@***.***> > wrote: > > > It seems it already somehow fixed in Dev version. Could you please double > > check? > > > > 25 сент. 2017 г. 4:37 пользователь "Michael Chirico" < > > ***@***.***> написал: > > > > @dselivanov <https://github.com/dselivanov> i was just going to sit down > > and crank out this PR, unless you've already started? > > > > — > > You are receiving this because you were mentioned. > > Reply to this email directly, view it on GitHub > > <https://github.com/Rdatatable/data.table/issues/ > > 2007#issuecomment-331751182>, > > or mute the thread > > <https://github.com/notifications/unsubscribe-auth/AE4u3aKh8Of- > > hZrsodXLBvjSOGgbjSv7ks5slvWxgaJpZM4Lxasz> > > . > > > > — > > You are receiving this because you commented. > > Reply to this email directly, view it on GitHub > > <https://github.com/Rdatatable/data.table/issues/ > 2007#issuecomment-331771842>, > > or mute the thread > > <https://github.com/notifications/unsubscribe-auth/ > AHQQdeezcPbnrhqfGMHNYpwu9uewsu9qks5slyWHgaJpZM4Lxasz> > > . > > > > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/Rdatatable/data.table/issues/ 2007#issuecomment-331778200>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ AE4u3dD5a5uKScJnFc4QMYZW4MQVhteMks5slzT2gaJpZM4Lxasz> > . > -- Regards Dmitriy Selivanov — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2007 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHQQddd4bd8cGYJ9ygKU4Hj8LcU2NTbsks5slzX4gaJpZM4Lxasz> .
- yes it fails with 1.10.4 2017-09-25 9:31 GMT+04:00 Michael Chirico <[email protected]>:…not at a machine so can't confirm. maybe something with R changed? does it still fail on CRAN? On Sep 25, 2017 1:11 PM, "Dmitriy Selivanov" ***@***.***> wrote: > I know! :-) I found it works in dev after I finished PR on last night. But > seems it works, isn't it? > > 2017-09-25 9:07 GMT+04:00 Michael Chirico ***@***.***>: > > > hmm the offending line of code appears to remain (`if > (!missing(select))`) > > > > On Sep 25, 2017 12:01 PM, "Dmitriy Selivanov" < ***@***.***> > > wrote: > > > > > It seems it already somehow fixed in Dev version. Could you please > double > > > check? > > > > > > 25 сент. 2017 г. 4:37 пользователь "Michael Chirico" < > > > ***@***.***> написал: > > > > > > @dselivanov <https://github.com/dselivanov> i was just going to sit > down > > > and crank out this PR, unless you've already started? > > > > > > — > > > You are receiving this because you were mentioned. > > > Reply to this email directly, view it on GitHub > > > <https://github.com/Rdatatable/data.table/issues/ > > > 2007#issuecomment-331751182>, > > > or mute the thread > > > <https://github.com/notifications/unsubscribe-auth/AE4u3aKh8Of- > > > hZrsodXLBvjSOGgbjSv7ks5slvWxgaJpZM4Lxasz> > > > . > > > > > > — > > > You are receiving this because you commented. > > > Reply to this email directly, view it on GitHub > > > <https://github.com/Rdatatable/data.table/issues/ > > 2007#issuecomment-331771842>, > > > or mute the thread > > > <https://github.com/notifications/unsubscribe-auth/ > > AHQQdeezcPbnrhqfGMHNYpwu9uewsu9qks5slyWHgaJpZM4Lxasz> > > > . > > > > > > > > > — > > You are receiving this because you were mentioned. > > Reply to this email directly, view it on GitHub > > <https://github.com/Rdatatable/data.table/issues/ > 2007#issuecomment-331778200>, > > or mute the thread > > <https://github.com/notifications/unsubscribe-auth/ > AE4u3dD5a5uKScJnFc4QMYZW4MQVhteMks5slzT2gaJpZM4Lxasz> > > . > > > > > > -- > Regards > Dmitriy Selivanov > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/Rdatatable/data.table/issues/ 2007#issuecomment-331778689>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ AHQQddd4bd8cGYJ9ygKU4Hj8LcU2NTbsks5slzX4gaJpZM4Lxasz> > . > — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#2007 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AE4u3SMnAv36ZZJD1NVevz8fVNKiLjPKks5slzrJgaJpZM4Lxasz> .-- Regards Dmitriy Selivanov
- hmm. will investigate when I get a chance. On Sep 26, 2017 1:21 PM, "Dmitriy Selivanov" <[email protected]> wrote:…yes it fails with 1.10.4 2017-09-25 9:31 GMT+04:00 Michael Chirico ***@***.***>: > not at a machine so can't confirm. maybe something with R changed? does it > still fail on CRAN? > > On Sep 25, 2017 1:11 PM, "Dmitriy Selivanov" ***@***.***> > > wrote: > > > I know! :-) I found it works in dev after I finished PR on last night. > But > > seems it works, isn't it? > > > > 2017-09-25 9:07 GMT+04:00 Michael Chirico ***@***.***>: > > > > > hmm the offending line of code appears to remain (`if > > (!missing(select))`) > > > > > > On Sep 25, 2017 12:01 PM, "Dmitriy Selivanov" < > ***@***.***> > > > wrote: > > > > > > > It seems it already somehow fixed in Dev version. Could you please > > double > > > > check? > > > > > > > > 25 сент. 2017 г. 4:37 пользователь "Michael Chirico" < > > > > ***@***.***> написал: > > > > > > > > @dselivanov <https://github.com/dselivanov> i was just going to sit > > down > > > > and crank out this PR, unless you've already started? > > > > > > > > — > > > > You are receiving this because you were mentioned. > > > > Reply to this email directly, view it on GitHub > > > > <https://github.com/Rdatatable/data.table/issues/ > > > > 2007#issuecomment-331751182>, > > > > or mute the thread > > > > <https://github.com/notifications/unsubscribe-auth/AE4u3aKh8Of- > > > > hZrsodXLBvjSOGgbjSv7ks5slvWxgaJpZM4Lxasz> > > > > . > > > > > > > > — > > > > You are receiving this because you commented. > > > > Reply to this email directly, view it on GitHub > > > > <https://github.com/Rdatatable/data.table/issues/ > > > 2007#issuecomment-331771842>, > > > > or mute the thread > > > > <https://github.com/notifications/unsubscribe-auth/ > > > AHQQdeezcPbnrhqfGMHNYpwu9uewsu9qks5slyWHgaJpZM4Lxasz> > > > > . > > > > > > > > > > > > > — > > > You are receiving this because you were mentioned. > > > Reply to this email directly, view it on GitHub > > > <https://github.com/Rdatatable/data.table/issues/ > > 2007#issuecomment-331778200>, > > > or mute the thread > > > <https://github.com/notifications/unsubscribe-auth/ > > AE4u3dD5a5uKScJnFc4QMYZW4MQVhteMks5slzT2gaJpZM4Lxasz> > > > . > > > > > > > > > > > -- > > Regards > > Dmitriy Selivanov > > > > — > > You are receiving this because you commented. > > Reply to this email directly, view it on GitHub > > <https://github.com/Rdatatable/data.table/issues/ > 2007#issuecomment-331778689>, > > or mute the thread > > <https://github.com/notifications/unsubscribe-auth/ > AHQQddd4bd8cGYJ9ygKU4Hj8LcU2NTbsks5slzX4gaJpZM4Lxasz> > > > . > > > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/Rdatatable/data.table/issues/ 2007#issuecomment-331780965>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ AE4u3SMnAv36ZZJD1NVevz8fVNKiLjPKks5slzrJgaJpZM4Lxasz> > . > -- Regards Dmitriy Selivanov — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2007 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHQQdQgAV83lnZnisI9NolQnS1a155VXks5smInygaJpZM4Lxasz> .
The fix appears to have come through
setcolorder(I think #592, fixed in PR #1792), which no longer errors as before (even though that line is still hit).The
missingline should be replaced withis.nullanyway.I also find it odd that
selectis sent as a parameter tofread, sinceselectis not touched on the R side before the C call -- perhaps @st-pasha knows better, but I think that means that either 1)selectis not actually used within C or 2) all the type-checking, etc. that's done withselectis done within C?Reacted by Dmitry Selivanov
data.table version: 1.10.0
R version 3.3.2
(full session info at bottom of post)
Default value for
freadargumentselectisNULLaccording to the function's help file.I get an error when i explicitly pass
select = NULLto fread (I usefreadin a wrapper function and passselectto the wrapper).Example, first two lines work as expected, third line yields an error:
Session info: