You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] How to make a system command in fread() pass CRAN Windows checks? #1110
Hi guys. I'm wondering if you can give me a push in the right direction. My package, retrosheet, fails Windows CRAN checks for r-release and r-oldrel, but passes the Windows r-devel check. Here are the check results.
changed the title [-][Question] How to make a system command in fread() pass certain CRAN checks?[/-][+][Question] How to make a system command in fread() pass CRAN Windows checks?[/+]on Apr 10, 2015
Did 1.0.0 version of your package pass cran check OK for those OSes?
You are using shell commands like grep which I believe is heavy OS dependent.
Can't help you much but I recommend to setup travis-ci, it helps quite a lot. Recently it gets native support for R which makes it much simpler to setup (example logR/.travis.yml).
After thinking about this, in long-run there will probably be more arguments added to getPartialGamelog() and a system command may complicate things. So for now I've decided to take the safe route and do some pre-processing on the file before calling fread().
@jangorecki - thanks for the tips, I'll definitely have a look at travis-ci.
Thanks for the report. I've tested this with R versions 3.0.3, 3.1.1 and 3.1.3, with data.table versions 1.9.2, 1.9.4 and 1.9.5 on windows 8.1, with corresponding Rtools versions.. Not able to reproduce at all.
I'll keep it open because the issue seems to be in fread.
Activity
[-][Question] How to make a system command in fread() pass certain CRAN checks?[/-][+][Question] How to make a system command in fread() pass CRAN Windows checks?[/+]jangorecki commentedon Apr 10, 2015
Did 1.0.0 version of your package pass cran check OK for those OSes?
You are using shell commands like
grepwhich I believe is heavy OS dependent.Can't help you much but I recommend to setup travis-ci, it helps quite a lot. Recently it gets native support for R which makes it much simpler to setup (example logR/.travis.yml).
Also you can link a line in file directly by adding
#L59to url: getPartialGamelog.R#L59rmscriven commentedon Apr 12, 2015
After thinking about this, in long-run there will probably be more arguments added to
getPartialGamelog()and a system command may complicate things. So for now I've decided to take the safe route and do some pre-processing on the file before callingfread().@jangorecki - thanks for the tips, I'll definitely have a look at travis-ci.
Closing this issue.
arunsrinivasan commentedon Apr 12, 2015
Thanks for the report. I've tested this with R versions 3.0.3, 3.1.1 and 3.1.3, with data.table versions 1.9.2, 1.9.4 and 1.9.5 on windows 8.1, with corresponding Rtools versions.. Not able to reproduce at all.
I'll keep it open because the issue seems to be in
fread.rmscriven commentedon Apr 12, 2015
Thanks Arun. I wrote this temporary workaround for
out.}
Obviously there are other checks that have to happen now, which I omitted. Unfortunately this is a lot slower than using the
grepcommand.arunsrinivasan commentedon Sep 10, 2015
Can't reproduce.