The R Project SVN R

Rev

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

Rev 27470 Rev 27652
Line 10... Line 10...
10
  before further processing (e.g., printing).
10
  before further processing (e.g., printing).
11
}
11
}
12
\details{
12
\details{
13
  The value of a top-level assignment \emph{is} put in \code{.Last.value},
13
  The value of a top-level assignment \emph{is} put in \code{.Last.value},
14
  unlike S.
14
  unlike S.
15
  
15
 
16
  Do not assign to \code{.Last.value} in the workspace, because this
16
  Do not assign to \code{.Last.value} in the workspace, because this
17
  will always mask the object of the same name in \code{package:base}.
17
  will always mask the object of the same name in \code{package:base}.
18
}
18
}
19
\seealso{\code{\link{eval}}
19
\seealso{\code{\link{eval}}
20
}
20
}
Line 23... Line 23...
23
## but they will in make check or if pasted in,
23
## but they will in make check or if pasted in,
24
## as example() does not run them at the top level
24
## as example() does not run them at the top level
25
gamma(1:15)          # think of some intensive calculation...
25
gamma(1:15)          # think of some intensive calculation...
26
fac14 <- .Last.value # keep them
26
fac14 <- .Last.value # keep them
27
 
27
 
28
library("stepfun") # returns invisibly
28
library("splines") # returns invisibly
29
.Last.value    # shows what library(.) above returned
29
.Last.value    # shows what library(.) above returned
30
\dontshow{detach("package:stepfun")}
30
\dontshow{detach("package:splines")}
31
}
31
}
32
\keyword{programming}
32
\keyword{programming}