Skip to content

Commit 409f145

Browse files
author
ripley
committed
add some comments
git-svn-id: https://svn.r-project.org/R/trunk@87417 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent f078532 commit 409f145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/library/utils/R/write.table.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function (x, file = "", append = FALSE, quote = TRUE, sep = " ",
7171
nocols <- p == 0L
7272

7373
if(is.logical(quote)) # must be false
74-
quote <- NULL
74+
quote <- NULL # not a legitimate value, fixed up later
7575
else if(is.numeric(quote)) {
7676
if(any(quote < 1L | quote > p))
7777
stop("invalid numbers in 'quote'")
@@ -139,7 +139,7 @@ function (x, file = "", append = FALSE, quote = TRUE, sep = " ",
139139
x[needconv] <- lapply(x[needconv], as.character)
140140
}
141141

142-
if (is.null(quote)) quote <- integer(0)
142+
if (is.null(quote)) quote <- integer(0) # avoid passing undocumented value
143143
invisible(.External2(C_writetable, x, file, nrow(x), p, rnames, sep, eol,
144144
na, dec, as.integer(quote), qmethod != "double"))
145145
}

0 commit comments

Comments
 (0)