get_call_wd {tinytest}R Documentation

Get workding dir from where a test was initiated

Description

A test runner, like run_test_file changes R's working directory to the location of the test file temporarily while the tests run. This function can be used from within the test file to get R's working directory at the time run_test_file (or one of it's siblings) was called.

Usage

get_call_wd()

Value

[character] A path.

Examples

get_call_wd()

[Package tinytest version 1.4.1 Index]