Is there a way to create a pipeline to run multiple .Rmd files like we do for .R scripts files.
#Pipeline using .R scripts runs smoothly all at once in the sequence provided
source("Src/Script_File_1.R")
source("Src/Script_File_2.R")
#But using Pipeline similarly for .Rmd scripts doesn't run and produces errors
source("Src/Script_File_1.Rmd")
source("Src/Script_File_2.Rmd")
# Error:
Error in source("Src/Script_File_1.Rmd") :
attempt to use zero-length variable name
If you are using any specific method, please let me know. I would like to breakdown my code into different files. I do prefer .Rmd files over .R files for clarity. So, any help would be appreciated.
@DavoWW! It works perfectly in terms of results or outputs. But I also noticed that it displays .R script files (file_one.R and file_two.R). This means if we have several files, all will be seen in the folder. Is there a way that it works but doesn't display these extra .R files. I tried to get this information from the documentation provided. But I am sure I am missing something here.