app <- ShinyDriver$new("../")
app$snapshotInit("mytest")
app$uploadFile(inDATA = "../../../../data/data.RData") # <-- This should be the path to the file, relative to the app's tests/ directory
app$snapshot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.