Commit d014b4b
committed
Use rprojroot rather than built in functions to find the rproj (if there is one)
We were running into catastrophic performance taking 20+ minutes on
CRAN's check machines with the previous code, likely because when
searching for Rprojects a parent directory containing thousands of files
was being searched.
I believe using rprojroot should avoid this.1 parent 00e74ad commit d014b4b
File tree
4 files changed
+25
-43
lines changed- R
- tests/testthat
4 files changed
+25
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | 373 | | |
379 | | - | |
380 | | - | |
381 | | - | |
| 374 | + | |
382 | 375 | | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | 376 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
393 | 381 | | |
394 | 382 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 383 | + | |
| 384 | + | |
399 | 385 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
404 | 392 | | |
405 | | - | |
| 393 | + | |
| 394 | + | |
406 | 395 | | |
407 | 396 | | |
408 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
124 | 115 | | |
| 116 | + | |
125 | 117 | | |
126 | 118 | | |
127 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
| 129 | + | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments