powered by
Mock file
mock_file(path, payload)
a list with S3 class mock_file
mock_file
(character) a file path. required
(character) string to be written to the file given at path parameter. required
path
mock_file(path = tempfile(), payload = "{\"foo\": \"bar\"}")
Run the code above in your browser using DataLab