I get frustrated by our peers who reply "please provide a worked example" but OMG... Please provide a worked example!
You can't use: source("filename.Rmd") as it isn't a simple set of R code. You can do: Rmarkdown::render("filename.Rmd") You can also knit child files. But it is completely unclear what you have tried, what you want to happen or what your expected outcome is. On Wed, 4 Jan 2023, 16:19 Kai Yang via R-help, <r-help@r-project.org> wrote: > Hi Team,I have multiple rmd files (~50) for difference study report. I did > try the source command to run them together, but it seems doesn't work.Is > there a way to run those rmd files from one script?Thanks,Kai > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.