The R Project SVN R

Rev

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

Rev 72450 Rev 74363
Line 152... Line 152...
152
  actual \code{encoding} is specified (rather than the default or
152
  actual \code{encoding} is specified (rather than the default or
153
  \code{"unknown"}) in a Latin-1 or UTF-8 locale then character strings
153
  \code{"unknown"}) in a Latin-1 or UTF-8 locale then character strings
154
  in the result will be translated to the current encoding and marked as
154
  in the result will be translated to the current encoding and marked as
155
  such (see \code{\link{Encoding}}).
155
  such (see \code{\link{Encoding}}).
156
 
156
 
157
  If \code{file} is a connection (including one specified by \code{""},
157
  If \code{file} is a connection (including one specified by \code{""}),
158
  it is not possible to re-encode the input inside \code{source}, and so
158
  it is not possible to re-encode the input inside \code{source}, and so
159
  the \code{encoding} argument is just used to mark character strings in the
159
  the \code{encoding} argument is just used to mark character strings in the
160
  parsed input in Latin-1 and UTF-8 locales: see \code{\link{parse}}.
160
  parsed input in Latin-1 and UTF-8 locales: see \code{\link{parse}}.
161
}
161
}
162
\references{
162
\references{
Line 176... Line 176...
176
  directives.
176
  directives.
177
}
177
}
178
\examples{
178
\examples{
179
someCond <- 7 > 6
179
someCond <- 7 > 6
180
## want an if-clause to behave "as top level" wrt auto-printing :
180
## want an if-clause to behave "as top level" wrt auto-printing :
181
## (all should look "as if on top level", e.g. non-assignments should print:
181
## (all should look "as if on top level", e.g. non-assignments should print:)
182
if(someCond) withAutoprint({
182
if(someCond) withAutoprint({
183
   x <- 1:12
183
   x <- 1:12
184
   x-1
184
   x-1
185
   (y <- (x-5)^2)
185
   (y <- (x-5)^2)
186
   z <- y
186
   z <- y