From 66e179ac1806aceb40960a56749ef56bca43939f Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 7 May 2024 09:52:40 +0200 Subject: [PATCH] gnu: r-xts: Remove vignette outputs. * gnu/packages/cran.scm (r-xts)[source]: Add snippet to remove generated files. Change-Id: Iba82b900e632e2cf5a99c9deb807bae6cf3dabcd --- gnu/packages/cran.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 36a2a03254..0d1d57475a 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -10075,7 +10075,18 @@ training models for classification or ranking.") (uri (cran-uri "xts" version)) (sha256 (base32 - "1yqx1x395hvdav1fvmpwrfm8sir398ky1bi0x5zsm7acbkv91maa")))) + "1yqx1x395hvdav1fvmpwrfm8sir398ky1bi0x5zsm7acbkv91maa")) + (modules '((guix build utils))) + (snippet + '(with-directory-excursion "inst/doc" + ;; These files are generated from Rnw files. + (for-each delete-file + (list "xts-faq.R" + "xts-faq.Rnw" + "xts-faq.pdf" + "xts.R" + "xts.Rnw" + "xts.pdf")))))) (build-system r-build-system) (propagated-inputs (list r-zoo)) (home-page "https://github.com/joshuaulrich/xts")