tinytest (version 1.2.4)

get_call_wd: 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()

Arguments

Value

[character] A path.

Examples

Run this code
# NOT RUN {
get_call_wd()
# }

Run the code above in your browser using DataLab