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]]
Anders Alexandersson
2023-Jan-04 17:31 UTC
[R] is it possible to run multiple rmd files together
Try the bookdown package: https://bookdown.org/yihui/bookdown/usage.html On Wed, Jan 4, 2023 at 11:19 AM Kai Yang via R-help <r-help at 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 at 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]]
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 at 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 at 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]]