The R Project SVN R

Rev

Rev 85981 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 85981 Rev 85990
Line 22... Line 22...
22
}
22
}
23
\details{
23
\details{
24
  This was originally written to help detect non-portable text in
24
  This was originally written to help detect non-portable text in
25
  files in packages.
25
  files in packages.
26
 
26
 
27
  It prints all element of \code{x} which contain non-ASCII characters,
27
  It prints all elements of \code{x} which contain non-ASCII characters,
28
  preceded by the element number and with non-ASCII bytes highlighted
28
  preceded by the element number and with non-ASCII bytes highlighted
29
  \emph{via} \code{\link{iconv}(sub = "byte")}.
29
  \emph{via} \code{\link{iconv}(sub = "byte")}.
30
 
30
 
31
  However, this rendering depends on \code{\link{iconv}(to = "ASCII")}
31
  However, this rendering depends on \code{\link{iconv}(to = "ASCII")}
32
  failing to convert, and macOS 14 no longer does so reliably so for
32
  failing to convert, and macOS 14 no longer does so reliably so for
Line 45... Line 45...
45
"   OK again.",
45
"   OK again.",
46
"}")
46
"}")
47
f <- tempfile()
47
f <- tempfile()
48
cat(out, file = f, sep = "\n")
48
cat(out, file = f, sep = "\n")
49
 
49
 
50
## IGNORE_RDIFF_BEGIN
-
 
51
showNonASCIIfile(f)
50
\dontdiff{showNonASCIIfile(f)}
52
## IGNORE_RDIFF_END
-
 
53
unlink(f)
51
unlink(f)
54
}
52
}
55
\keyword{utilities}
53
\keyword{utilities}