My experience is the same as James' -- the file is replaced every time the document is re-rendered.
It does occur to me though that if you have it open in M$word at the time that you're rendering it, that might cause an issue with overwriting. Clark On Fri, Oct 18, 2024 at 10:23 AM James W. MacDonald via ESS-help < ess-help@r-project.org> wrote: > It appears to me that the file is automatically replaced. Running this > document: > > --- > title: "Habits" > author: John Doe > date: March 22, 2005 > output: word_document > --- > > Here's a table > > ```{r, results = "asis"} > > library(knitr) > > kable(data.frame(A = rnorm(10), B = rnorm(10), c = rnorm(10))) > > > > ``` > > Multiple times resulted in an updated Word document every time, without > needing to delete the existing Word document. > > -----Original Message----- > From: ESS-help <ess-help-boun...@r-project.org> On Behalf Of Hüsing, > Johannes via ESS-help > Sent: Friday, October 18, 2024 2:14 AM > To: ess-help@r-project.org > Subject: [ESS] render into word_document, overwriting existing file > > Dear all, > I would like to render an *.Rmd file into a word document, running R on > Microsoft Windows, without having before to delete a file with the same > name and path as the file I want to render into. > > Are there preamble settings or render() parameters which allow me to do so? > > Best wishes > > Johannes > > Dr. Johannes H sing > Epidemiologie > > Landeskrebsregister NRW gGmbH > Gesundheitscampus 10 > 44801 Bochum > > > > T 0234 54509-216 > F 0234 54509-499 > johannes.hues...@krebsregister.nrw.de<mailto: > johannes.hues...@krebsregister.nrw.de> > > https://urldefense.com/v3/__http://www.landeskrebsregister.nrw__;!!K-Hz7m0Vt54!mbw1tN_Qa4DLV51K6EnHeSDxxtovPUq5a2xjhnx-UfwZpK5HrlGSqIa5oi4vNAe_NgLcqv1X4G4RSrDoIunD_Vh1vLs$ > < > https://urldefense.com/v3/__http://www.landeskrebsregister.nrw__;!!K-Hz7m0Vt54!mbw1tN_Qa4DLV51K6EnHeSDxxtovPUq5a2xjhnx-UfwZpK5HrlGSqIa5oi4vNAe_NgLcqv1X4G4RSrDoIunD_Vh1vLs$ > > > > Das Landeskrebsregister NRW online > FACEBOOK: > https://urldefense.com/v3/__https://www.facebook.com/LKRNordrheinWestfalen/__;!!K-Hz7m0Vt54!mbw1tN_Qa4DLV51K6EnHeSDxxtovPUq5a2xjhnx-UfwZpK5HrlGSqIa5oi4vNAe_NgLcqv1X4G4RSrDoIunDXwHMTCw$ > INSTAGRAM: > https://urldefense.com/v3/__https://www.instagram.com/landeskrebsregister_nrw__;!!K-Hz7m0Vt54!mbw1tN_Qa4DLV51K6EnHeSDxxtovPUq5a2xjhnx-UfwZpK5HrlGSqIa5oi4vNAe_NgLcqv1X4G4RSrDoIunDk91BL0Q$ > LINKEDIN: > https://urldefense.com/v3/__https://www.linkedin.com/company/87452209/admin/feed/posts/__;!!K-Hz7m0Vt54!mbw1tN_Qa4DLV51K6EnHeSDxxtovPUq5a2xjhnx-UfwZpK5HrlGSqIa5oi4vNAe_NgLcqv1X4G4RSrDoIunD_ibXOtE$ > > Newsletter LKR NRW - jetzt anmelden unter > https://urldefense.com/v3/__https://www.landeskrebsregister.nrw/aktuelles/newsletter__;!!K-Hz7m0Vt54!mbw1tN_Qa4DLV51K6EnHeSDxxtovPUq5a2xjhnx-UfwZpK5HrlGSqIa5oi4vNAe_NgLcqv1X4G4RSrDoIunDuc1-hmM$ > > > > > Gesch ftsf hrer > Dr. Andres Sch tzend bel > Vorsitzender der Gesellschafterversammlung Staatssekret r Matthias > Heidmeier Sitz der Gesellschaft Bochum Registergericht Amtsgericht Bochum > HRB 17715 > > HINWEIS: Diese Nachricht ist nur f r den Adressaten bestimmt. Es ist nicht > erlaubt, diese Nachricht zu kopieren oder Dritten zug nglich zu machen. > Sollten Sie irrt mlich diese Nachricht erhalten haben, bitte ich um Ihre > Mitteilung per E-Mail oder unter der oben angegebenen Telefonnummer. > > [[alternative HTML version deleted]] > > ______________________________________________ > ESS-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help > [[alternative HTML version deleted]] ______________________________________________ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help