test_sketch | R Documentation |
Test a sketch application
test_sketch(app_script, test_script, port = 9454, ...)
app_script |
A character string; the file path to the app. |
test_script |
A character string; the file path to the tests. |
port |
An integer to pass to 'websocket$new()'. |
... |
Additional arguments to pass to source_r. |
A "websocket" object.
## Not run:
app_file <- system.file("test_files/test_testthat_app.R", package = "sketch")
test_file <- system.file("test_files/test_testthat_test.R", package = "sketch")
# This following command will launch the default browser
res <- test_sketch(app_file, test_file)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.