GNU bug report logs -
#61838
[PAtCH] gnu: Add r-simplermarkdown, r-rcppspdlog, r-n2r, r-sccore, r-leidenalg, r-drat, r-dendsort, r-pagoda2, r-conospanel, r-p2data, r-pma, r-rmumps and r-conos.
Previous Next
Full log
Message #68 received at 61838 <at> debbugs.gnu.org (full text, mbox):
Mădălin Ionel Patrașcu <madalinionel.patrascu <at> mdc-berlin.de> writes:
> * gnu/packages/cran.scm (r-simplermarkdown): New variable.
Thanks for the update.
Turns out we cannot easily patch references to the pandoc executable. I
tried this:
--8<---------------cut here---------------start------------->8---
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-pandoc-invocations
(lambda* (#:key inputs #:allow-other-keys)
(let ((pandoc (search-input-file inputs "/bin/pandoc")))
(substitute* '("R/mdtangle.R"
"R/mdweave.R"
"R/mdweave_to.R")
(("'pandoc ")
(string-append "'" pandoc " ")))
(substitute* "R/has_pandoc.R"
(("Sys.which\\(\"pandoc\"\\)")
(string-append "\"" pandoc "\"")))))))))
--8<---------------cut here---------------end--------------->8---
This works, but the resulting output no longer has any references to
/gnu/store/…-pandoc…/bin/pandoc. That’s because none of these files
make it to the output. Instead they all seemingly get squished into a
pair of simplermarkdown.rdx and .rdb files, which are compressed.
So it is safer to propagate pandoc.
This may point to a general problem with the r-build-system that we may
need to investigate later.
--
Ricardo
This bug report was last modified 2 years and 119 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.