View source: R/test_framework.R
createBiodbTestInstance | R Documentation |
Creates a BiodbMain instance with options specially adapted for tests.
You can request the logging of all messages into a log file.
It is also possible to ask for the creation of a BiodbTestMsgAck observer,
which will receive all messages and emit a testthat test for each message.
This will allow the testthat output to not stall a long time while, for
example, downloading or extracting a database.
Do not forget to call terminate()
on your instance at the end of your
tests.
createBiodbTestInstance(ack = FALSE)
ack |
If set to TRUE, an instance of BiodbTestMsgAck will be attached to the BiodbMain instance. |
The created BiodbMain instance.
# Instantiate a BiodbMain instance for testing biodb <- biodb::createBiodbTestInstance() # Terminate the instance biodb$terminate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.