Closed krlmlr closed 4 years ago
Probably better to add README.Rmd
to from
before the loop, so you don't duplicate the other code. e.g.
from <- to_update[["From"]][[row]]
if ("README.md" %in% from && file.exists(file.path(root, "README.Rmd")) {
from <- c(from, "README.Rmd")
}
for extra comfort.