biggis-project / path-optimizer

Former `heatstressrouting` shiny-based app
MIT License
2 stars 2 forks source link

weightedlines_impl.R can somtimes not be loaded from weightedlines.R #13

Closed joachimrussig closed 7 years ago

joachimrussig commented 7 years ago

Expected behaviour

If weightedlines.R and weightedlines_impl.R are located in the same directory, weightedlines.R should load weightedlines_impl.R via soruce("weightedlines_impl.R").

Actual behavior

If weightedlines.R is not invoked from the preprocessing directory the working directory and the directory were the scripts are located are different, so R cannot loacte the weightedlines_impl.R script correctly.

Steps to reproduce the behavior

Call the script from the project root directory:

RScript --vanilla ./preprocessing/weightedlines.R
joachimrussig commented 7 years ago

Closed in 92b2f3d