Make script run relative to the project home directory
Add back the permutation functions which are needed for generating the RPM expectation. Change spat_var_func.R to spat_functions.R throughout.
Drop unnecessary conditional on the sim_result argument for the getResults() function.
Import spat_functions.R instead of spat_sim_vario.R. Fix error in loop for generating pdfs.
Add annotation to command line arguments
Change spat_sim_vario_func.R to spat_functions.R
Fix path so it runs with respect to project home directory, and drop unnecessary call to empirical analysis script.