【发布时间】:2021-07-26 06:53:51
【问题描述】:
我在一家采用非正统文件夹组织方式的公司工作,我希望能够告诉 testthat 它应该在哪个文件夹中查找我的功能。
例如,使用如下文件结构:
.
├── data
│ ├── input
│ └── output
└── src
├── Ex
├── Py
│ └── tests
└── R
└── tests
我想告诉testthat,我所有的测试都在./src/R/tests,我的代码在./src/R/。有没有办法指定这些路径,以便包知道在哪里查找文件?
【问题讨论】: