I have a .sh script with calls internally a R script.
This R Script use some directories that I print in my program.
My problem is that the output I am generating in my R script is used after its execution another time in the .sh script.
Example:
- Calls join_files.sh, we pass init_month / end_month
- Using this init and end month the R script joins all files between those months
- I want to get that directories that are being used by my R script, I print them in the R Script and using 'cat' command in R I can get them, but all extra information is being printed.
Is there a way to print directly in the shell using R script?