From abb175718995f12c82576e76b053482710587fbc Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Sun, 6 Aug 2023 15:33:17 +0200 Subject: [PATCH] Add footer --- src/myrustlib/vendor-authors.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/myrustlib/vendor-authors.R b/src/myrustlib/vendor-authors.R index cf53869..8f6826d 100644 --- a/src/myrustlib/vendor-authors.R +++ b/src/myrustlib/vendor-authors.R @@ -6,4 +6,5 @@ packages <- subset(packages, sapply(packages$authors, length) > 0 & name != 'myr authors <- vapply(packages$authors, function(x) paste(sub(" <.*>", "", x), collapse = ', '), character(1)) lines <- sprintf(" - %s %s: %s", packages$name, packages$version, authors) dir.create('../../inst', showWarnings = FALSE) -writeLines(c('Authors of vendored cargo crates', lines), '../../inst/AUTHORS') +footer <- sprintf("\n(This file was auto-generated from 'cargo metadata' on %s)", Sys.Date()) +writeLines(c('Authors of vendored cargo crates', lines, footer), '../../inst/AUTHORS')