The R Project SVN R

Rev

Rev 61150 | Rev 64657 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61150 Rev 61433
Line 44... Line 44...
44
 
44
 
45
  If the final line is incomplete (no final EOL marker) the behaviour
45
  If the final line is incomplete (no final EOL marker) the behaviour
46
  depends on whether the connection is blocking or not.  For a
46
  depends on whether the connection is blocking or not.  For a
47
  non-blocking text-mode connection the incomplete line is pushed back,
47
  non-blocking text-mode connection the incomplete line is pushed back,
48
  silently.  For all other connections the line will be accepted, with a
48
  silently.  For all other connections the line will be accepted, with a
49
  warning. 
49
  warning.
50
 
50
 
51
  Whatever mode the connection is opened in, any of LF, CRLF or CR will
51
  Whatever mode the connection is opened in, any of LF, CRLF or CR will
52
  be accepted as the EOL marker for a line.
52
  be accepted as the EOL marker for a line.
53
 
53
 
54
  If \code{con} is a not-already-open \link{connection} with a non-default
54
  If \code{con} is a not-already-open \link{connection} with a non-default
Line 87... Line 87...
87
close(con)
87
close(con)
88
 
88
 
89
unlink("test1") # tidy up
89
unlink("test1") # tidy up
90
 
90
 
91
\dontrun{
91
\dontrun{
92
# read a 'Windows Unicode' file 
92
# read a 'Windows Unicode' file
93
A <- readLines(file("Unicode.txt", encoding = "UCS-2LE"))
93
A <- readLines(file("Unicode.txt", encoding = "UCS-2LE"))
94
unique(Encoding(A)) # will most likely be UTF-8
94
unique(Encoding(A)) # will most likely be UTF-8
95
}}
95
}}
96
\keyword{file}
96
\keyword{file}
97
\keyword{connection}
97
\keyword{connection}