Error when running the demo script 'ThreeFactorScale2Test.R'