Nothing
test_that("create_new_file - invalid args", {
expect_error(create_new_file(list()), "Invalid arguments for CreateNewFile")
})
test_that("create_new_file - new file", {
local_mocked_bindings(
documentOpen = function(...) NULL,
.package = "myownrobs"
)
mock_file <- tempfile()
create_new_file(list(filepath = mock_file, contents = "NEW_FILE_CONTENT"))
result <- readLines(mock_file)
expect_equal("NEW_FILE_CONTENT", result)
})
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.