I have a script in R with different functions. I want to use source() to load them in another script, but I only want to load one of them. I know it is possible to select the numbers of the lines you want to source, but I would like to use the name of the function.
For example, suppose I have a file "script.R" including the functions "fun1", "fun2" and "fun3". How do I load "fun1" in my new script using source and the name of the function?
Many thanks in advance!