preliminary compile.R