Hi
I would like to write a code in an existing R file that I am working in so that my code when executed creates a new blank source R file and saves this source file to a specific directory.
Then I would proceed to write the following commands in my newly created source R file
- flag <- runif(100)
- print(flag)
I would not execute these commands in my source R file rather just write the code .
Finally, I need to write a code in my current R file that would read all these commands from the source R file and execute in my current R file to produce the results.
Thanks in advance for your help!!