I'm currently working on a script which should analyze a dataset based on a 'configuration' file.
The input of this file is for instance:
timestart <- 123456
timeend <- 654321
exclude <- c(409,255,265)
paid <- 1
Indeed, as Andrie suggested, using a .r config file is the easiest way to do it. I overlooked that option completely!
Thus, just make a .r file with the variables already in it:
#file:config.R timestart <- 123456 timeend <- 654321 exclude <- c(409,255,265) paid <- 1
In other script use:
And voila. Thank you Andrie!