Skip to content

[Question] How to make a system command in fread() pass CRAN Windows checks? #1110

@rmscriven

Description

@rmscriven

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.

http://cran.r-project.org/web/checks/check_results_retrosheet.html

The culprit line is on line 59 of

https://github.com/rmscriven/retrosheet/blob/master/R/getPartialGamelog.R

Specifically, CRAN reports the following,

Syntax error: end of file unexpected (expecting ")")
Warning: running command 'sh.exe -c (grep '20120825' GL2012.TXT) > D:\temp\RtmpC8Rfyr\file16485edb70d9' had status 2
Warning in shell(paste("(", input, ") > ", tt, sep = "")) :
 '(grep '20120825' GL2012.TXT) > D:\temp\RtmpC8Rfyr\file16485edb70d9' execution failed with error code 2
Error in fread(command, header = FALSE, select = sel) :
 File not found: D:\temp\RtmpC8Rfyr\file16485edb70d9
Calls: getPartialGamelog -> fread
Execution halted

I'm hoping you might be able to give me a few pointers on how to get the function to pass all Windows checks, as I am having trouble going about it.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions