Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This script includes some functions to initialise the testing dataset remotely and locally and connect to a number of server available from the virtual machine. The main function are described below.

Up to version 5.1

The functions connect automatically to the servers using Opal library.

From version 6.0

The functions have been adapted to the needs to DSI and DSLite libraries.

Function name

Description

connect.all.datasets()

  • Disconnect to any Opal servers currently connected.

  • The three local datasets referred as ds.test_env$local.values.[1-3] and ds.test_env$local.values are initialised.

  • The three tables of the TESTING dataset are made available.

  • This function is useful to complete some tests on split and combined datasets.

  • No value is returned.

connect.dataset.1()

  • Disconnect to any Opal servers currently connected.

  • The local dataset referred as ds.test_env$local.values.1 is initialised

  • The table TESTING. DATASET1 is made available

  • This function is useful to complete some tests one server.

  • No value is returned

connect.dataset.2()

  • Disconnect to any Opal servers currently connected.

  • The local dataset referred as ds.test_env$local.values.2 is initialised

  • The table TESTING. DATASET2 is made available

  • This function is useful to complete some tests one server.

  • No value is returned

connect.dataset.3()

  • Disconnect to any Opal servers currently connected.

  • The local dataset referred as ds.test_env$local.values.3 is initialised

  • The table TESTING. DATASET3 is made available

  • This function is useful to complete some tests one server.

  • No value is returned

init.all.datasets

Helper function - to connect.all.datasets()

  • Initialise the local values, information to connect to the three servers, and all the columns provided by the TESTING datasets.

init.dataset.1

Helper function - to connect.dataset.1()

  • Initialise the local values, information to connect to the server, and all the columns provided by the TESTING.DATASET1.

init.all.datasets

Helper function - to connect.dataset.2()

  • Initialise the local values, information to connect to the server, and all the columns provided by the TESTING.DATASET2.

init.all.datasets

Helper function - to connect.dataset.3()

  • Initialise the local values, information to connect to the server, and all the columns provided by the TESTING.DATASET3.

...

To install the testing framework, download the Template Testing R project from repository listed below.. Then copy the tests folder in an empty R project or existing DataSHIELD R project. https://github.com/patRyserWelch8/ds.TestingTemplateRProject/tree/master/tests/testthat

...