Skip to content

Commit 78bce0e

Browse files
committed
fix testnum
1 parent 00dc7bb commit 78bce0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/fread.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ yaml=FALSE, tmpdir=tempdir(), tz="UTC")
6464
input_is_con = TRUE
6565
file = NULL
6666
}
67-
if (!input_is_con && is.null(cmd)) {
67+
if (!input_is_con && is.null(cmd) && is.null(text)) {
6868
if (!is.character(input) || length(input)!=1L) {
6969
stopf("input= must be a single character string containing a file name, a system command containing at least one space, a URL starting 'http[s]://', 'ftp[s]://' or 'file://', or, the input data itself containing at least one \\n or \\r")
7070
}

inst/tests/tests.Rraw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21868,4 +21868,4 @@ f = testDir("russellCRLF.csv")
2186821868
test(2346.1, fread(file(f, "r")), fread(f))
2186921869
test(2346.2, fread(file(f, "r"), nrows=0L), fread(f, nrows=0L))
2187021870
test(2346.3, fread(file(f, "r"), nrows=5), fread(f, nrows=5))
21871-
test(2346.3, fread(file(f, "r"), nrows=5, header=FALSE), fread(f, nrows=5, header=FALSE))
21871+
test(2346.4, fread(file(f, "r"), nrows=5, header=FALSE), fread(f, nrows=5, header=FALSE))

0 commit comments

Comments
 (0)