Nothing
source("incl/start.R")
message("*** future() ...")
f <- future({
42L
}, lazy = TRUE)
print(resolved(f))
y <- value(f)
print(y)
stopifnot(y == 42L)
message("*** future() w/ gc = TRUE ...")
f <- future(42L, gc = TRUE, lazy = TRUE)
print(f)
y <- value(f)
print(y)
stopifnot(y == 42L)
message("*** future() w/ gc = TRUE ... DONE")
message("*** future() ... DONE")
message("*** future() ...")
f <- future({
42L
}, lazy = TRUE)
print(resolved(f))
y <- value(f)
print(y)
stopifnot(y == 42L)
message("*** future() w/ gc = TRUE ...")
f <- future(42L, gc = TRUE, lazy = TRUE)
print(f)
y <- value(f)
print(y)
stopifnot(y == 42L)
message("*** future() w/ gc = TRUE ... DONE")
message("*** future() - exceptions ...")
target <- list(name = "<unknown>", envir = new.env(), code = "Yo!", exists = TRUE)
res <- tryCatch(get_future(target, mustExist = TRUE), error = identity)
stopifnot(inherits(res, "error"))
message("*** future() - exceptions ... DONE")
message("*** future() ... DONE")
source("incl/end.R")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.