@@ 4992,6 4992,23 @@ create an alternative mapping from sequences.")
(base32
"0zx0brvcyi9id7xli9h5nk9an7j46p7zgjj3qmwr3jm4b95qahpl"))))
(build-system r-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'install 'fix-r-4.5.0
+ ;; Changes in R 4.5.0: C-Level Facilities.
+ ;; Strict R headers are now the default. This removes the legacy
+ ;; definitions of PI, Calloc, Realloc and Free: use M_PI,
+ ;; R_Calloc, R_Realloc or R_Free instead.
+ ;; https://cran.r-project.org/doc/manuals/r-release/NEWS.html
+ (lambda _
+ (substitute* '("src/densities.cpp"
+ "src/loghmm.cpp"
+ "src/scalehmm.cpp"
+ "src/utility.cpp")
+ (("Calloc\\(") "R_Calloc(")
+ (("Free\\(") "R_Free(")))))))
(native-inputs
(list r-bsgenome-hsapiens-ucsc-hg19 r-knitr r-testthat))
(propagated-inputs