Commit ea734bc
committed
Set working directory for config.R correctly even if setwd is set outside
`setwd` can be set in a `~/.Rprofile` or `Rprofile.site`, to provide
a default path when R opens. This however confuses the config script,
as the R working path might then be different from the system path
from where the script is called.
This patch sets the current R code's working directory to the same
as it was previously assumed, the calling scripts (`configure` or
`cleanup`) folders, through the `PWD` shell env var. After this
the relative paths for the tools folder becomes correct.
Signed-off-by: Gergely Imreh <gergely.imreh@faculty.ai>1 parent cbd61a1 commit ea734bc
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
577 | 586 | | |
578 | 587 | | |
579 | 588 | | |
| |||
0 commit comments