# NOT RUN {
# }
# NOT RUN {
# The output is affected by the user's use of options(...) and the
# current version of the package
options(depcache.local.only = FALSE)
print(depcache.options(format.version = 3))
options(depcache.local.only = TRUE)
print(depcache.options())
# "skip" makes it possible to avoid mistaking arguments evaluated in a
# non-standard way for local variables
speed <- 1
options(depcache.skip = 'speed')
x %<-% { message('fitting the model'); lm(dist ~ speed, cars) }
speed <- 0
# not fitted again despite change in local variable "speed"
summary(x)
# }
Run the code above in your browser using DataLab