Learn R Programming

sketch (version 1.1.20.3)

test_sketch: Test a sketch application

Description

Test a sketch application

Usage

test_sketch(app_script, test_script, port = 9454, ...)

Value

A "websocket" object.

Arguments

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.

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab