Also, consider using the script directive to point to an R-script instead of the R-function. Separation of the DAG-logic from the code of each rule is good. Plus you get R-syntax highlighting with the ESS mode then :) -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/21#issuecomment-289758431