get_call_wd: Get workding dir from where a test was initiated

View source: R/tinytest.R

get_call_wdR 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()

tinytest documentation built on March 7, 2023, 7:43 p.m.