Nothing
test_that("we can communicate with a large number of child processes", {
skip_on_cran()
skip_on_ci()
n <- 20L
server <- tryCatch(renv_socket_server(), error = skip)
defer(close(server$socket))
script <- renv_test_code({
renv:::summon()
conn <- renv_socket_connect(port, open = "wb")
defer(close(conn))
serialize(Sys.getpid(), connection = conn)
}, list(port = server$port))
for (i in seq_len(n)) {
system2(
command = R(),
args = c("--vanilla", "-s", "-f", renv_shell_path(script)),
stdout = FALSE,
stderr = FALSE,
wait = FALSE
)
}
stk <- stack()
for (i in seq_len(n)) local({
conn <- renv_socket_accept(server$socket, open = "rb", timeout = 10)
defer(close(conn))
stk$push(unserialize(conn))
})
expect_length(stk$data(), n)
})
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.