# View your current workspace
if (FALSE) {
ls()
ll()
}
# View another environment
e <- new.env()
ll(e)
e$fit <- lm(mpg ~ wt, mtcars)
e$fit2 <- lm(mpg ~ wt + am + vs, data = mtcars)
e$x <- rnorm(1e5)
e$y <- runif(1e4)
e$z <- with(e, x * y)
e$w <- sum(e$z)
ls(e)
ll(e)
Run the code above in your browser using DataLab