cache.capture_warning | R Documentation |
Utility function for capturing warnings.
cache.capture_warning(w)
w |
Captured warning passed by withCallingHandlers. |
# this will only have an effect if a current cache exists.
## Not run:
if(!cache.ok(1)) withCallingHandlers({
x = mtcars # base-R dataset.
x = mtcars # base-R dataset.
warning('warning 2-1') # this is the first warning we need tdo capture.
warning('warning 2-2') # this is the first warning we need tdo capture.
save.cache(x) # we'll capture it inside svae.caceh
}, warning = cache.capture_warning)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.