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.
Thanks for your help!