made R chunks less error-prone with 1 command line variable