copy_fixture | R Documentation |
A wrapper to around dput
to copy a database fixture
from origin
to a directory with fixtures used by dittodb.
copy_fixture(
mock_db = "./tests/testthat/mock_db/",
origin,
filename,
verbose = FALSE
)
mock_db |
The path to the mock database containing the fixtures for
dittodb. Default is |
origin |
The origin directory where dittodb saved the fixtures from capturing |
filename |
The name of the file to be copied. |
verbose |
Logical. Should filenames be printed? The filename consist of the first SQL verb of the query (often "SELECT") and the hash of the query that is sent. See the dittodb documentation for details. |
Copies the fixture from mock_db/origin/
to mock_db/
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.