I've written a user-friendly script for someone who has no R/coding experience, so I stored all the core work of what it's supposed to do into a .R file and all they have to do is run source('file.R'). However, within my functions I do have arguments that when run individually, could be changed with different outcomes, for example print something or not.
When calling source(), is it possible to also pass some of those arguments to change them from their defaults as defined in the function? And if so, how?
I tried to simply defining them before calling source(), to no avail. I am successfully passing a vector with values to be used (colors for plotting), so I'm not sure what I'm missing.