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.
Expected behaviour
If
weightedlines.R
andweightedlines_impl.R
are located in the same directory,weightedlines.R
should loadweightedlines_impl.R
viasoruce("weightedlines_impl.R")
.Actual behavior
If
weightedlines.R
is not invoked from thepreprocessing
directory the working directory and the directory were the scripts are located are different, so R cannot loacte theweightedlines_impl.R
script correctly.Steps to reproduce the behavior
Call the script from the project root directory: