mock_file {webmockr} | R Documentation |
Mock file
Description
Mock file
Usage
mock_file(path, payload)
Arguments
path |
(character) a file path. required |
payload |
(character) string to be written to the file given
at |
Value
a list with S3 class mock_file
Examples
mock_file(path = tempfile(), payload = "{\"foo\": \"bar\"}")
[Package webmockr version 1.0.0 Index]