rstudio / rticles

LaTeX Journal Article Templates for R Markdown
https://pkgs.rstudio.com/rticles/
1.47k stars 519 forks source link

Only overwrite the purled file if this our file. #439

Closed cderv closed 3 years ago

cderv commented 3 years ago

This closes #433 by providing a new mechanism into rjournal_article() to avoid overwriting any existing R file user maintained

Current behavior

See https://github.com/rstudio/rticles/issues/394#issuecomment-894316281

New behavior

Possible other solution

@yihui can you review this to give your thoughts on the current solution and possible other one ?

Thank you.