![]() Weave.# Caching ``` set.seed( 3) n <- 2000 dat <- data.table( x1= runif(n), x2= runif(n), y= sample( 0 : 1, n, replace= TRUE)) # runifChanged will write runifch.rds if needed (chunk name.rds) # Will run if dat or source code for lrm or bootcov change b <- runifChanged(g, dat, lrm, bootcov) dim(b $boot.Coef) head(b $boot. You can also set or change the default chunk options for a document either before weave using the set_chunk_defaults function. to set the default out_width of all figures you can use:. You can set the default chunk options (and weave arguments) for a document using weave_options key in YAML Header Configuration. Options not listed above: R, aniopts, autodep, background, cache, cache, cache, cache. One other important change relates to the use of the knitr cache.When R Markdown knits documents it explicitly configures the knitr cache to use a directory based on the name of the input file (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |