(tmp_path)
| 226 | |
| 227 | |
| 228 | def test_r_inline(tmp_path): |
| 229 | _make_local_repo(str(tmp_path)) |
| 230 | |
| 231 | cmd = '''\ |
| 232 | Rscript -e ' |
| 233 | stopifnot(packageVersion("rprojroot") == "1.0") |
| 234 | cat(commandArgs(trailingOnly = TRUE), "from R!\n", sep=", ") |
| 235 | ' |
| 236 | ''' |
| 237 | |
| 238 | ret = run_language( |
| 239 | tmp_path, |
| 240 | r, |
| 241 | cmd, |
| 242 | deps=('rprojroot@1.0',), |
| 243 | args=('hi', 'hello'), |
| 244 | ) |
| 245 | assert ret == (0, b'hi, hello, from R!\n') |
| 246 | |
| 247 | |
| 248 | @pytest.fixture |
nothing calls this directly
no test coverage detected